Questions tagged [writeablebitmapex]

The WriteableBitmapEx library is a collection of extension methods for the WriteableBitmap. The WriteableBitmap class is available for Windows Phone, WPF, WinRT Metro Style XAML and Silverlight and allows the direct manipulation of a bitmap and could be used to generate fast procedural images by drawing directly to a bitmap.

The WriteableBitmapEx library is a collection of extension methods for the WriteableBitmap. The WriteableBitmap class is available for Windows Phone, WPF, WinRT Metro Style XAML and Silverlight and allows the direct manipulation of a bitmap and could be used to generate fast procedural images by drawing directly to a bitmap.

The WriteableBitmap API is very minimalistic and there's only the raw Pixels array for such operations. The WriteableBitmapEx library tries to compensate that with extensions methods that are easy to use like built in methods and offer GDI+ like functionality. The library extends the WriteableBitmap class with elementary and fast (2D drawing) functionality, conversion methods and functions to combine (blit) WriteableBitmaps.

The extension methods are grouped into different CS files with a partial class. It is possible to include just a few methods by using the specific source CS files directly or all extension methods through the built library assembly.

85 questions
1
vote
0 answers

Remove unwanted halo when overlaying transparent PNG using WriteableBitmapEx Windows Phone

As seen from the image, the edges of eclipse is not smooth. I am using the following blend mode. Other modes produce more unwanted result. writeableBmp.Blit(destRect, wbCircle, sourceRect, WriteableBitmapExtensions.BlendMode.Alpha); Attached is…
PutraKg
  • 2,226
  • 3
  • 31
  • 60
1
vote
2 answers

Silverlight: converting a byte[] to a BitmapImage ends in "catastrophic failure"

I am trying to modify a BitmapImage in Silverlight, but happen to run into a "catastrophic failure"! First I load an image and add it to the LayoutRoot. BitmapImage source = new BitmapImage(new Uri("image.jpg", UriKind.Relative)); Image…
0
votes
0 answers

UWP: Draw map icons to scale

I have an application that I am writing in UWP that draws a car on a map. Around that car, there are POIs that I would like to draw on the map also. I have a 2D array that populates the POIs from my car, such that the car is located at [500,500] and…
0
votes
0 answers

WPF Render 2D Point Cloud

I am trying to render point cloud, generated using UAV images, in 2D viewport. I have tested WriteableBitmapEx, SkiaSharp (and with OpenGL backend), SharpGL and none of them gave me less than 20 seconds. Point cloud i am trying to render contains…
user2590769
  • 75
  • 1
  • 10
0
votes
1 answer

WriteableBitmap extension method FillEllipse is creating artifacts on edges of the image

I am using WriteableBitmap with WriteableBitmapEx, specifically FillEllipse method and when I call FillEllipse where portion of the ellipse is drawn outside the image, it causes an artifact on edge of the image. Some code for illustration: public…
Tedd Parsile
  • 65
  • 1
  • 10
0
votes
1 answer

Setting thumbnail of SystemMediaTransportControlsDisplayUpdater

I am Setting thumbnail of SMTC control from stream via SystemMediaTransportControlsDisplayUpdater, but it is not working var response = await new HttpClient().GetAsync(imgUrl); systemMediaTransportControlsDisplayUpdater.Thumbnail =…
Pavan Tiwari
  • 3,077
  • 3
  • 31
  • 71
0
votes
1 answer

WriteableBitmapEx alpha blend color issue

I'm trying to use WriteableBitmap with the WriteableBitmapEx extension methods. The code sample is below along with two screenshots. The first screenshot is what my code generates and the second what I'm expecting (hand drawn via Paint.Net). Am I…
David Hollinshead
  • 1,710
  • 17
  • 18
0
votes
1 answer

APEX how to create a page that allows you to create username and passwords for a single user

Been trying to create mock website of a sort, but can't seem to determine which page and page type is required in order for any new user to create a username and password, email etc... Is it a feasible task on Apex? Or do i need to go to another…
Ap3x
  • 3
  • 3
0
votes
2 answers

How to copy an Image into a section of a WriteableBitmap (C# & WPF)

Many apologies if this is a duplicate. I am writing a number of BitmapImages onto a specific portion of a canvas like this (snippet). It works fine: TreeFile = "pack://application:,,,/Images/" + TreeFile; var image = new…
zetar
  • 1,225
  • 2
  • 20
  • 45
0
votes
1 answer

C# How to dispose of OpenFileDialog file

I use OpenFileDialog to get the path of an image and then set it to my image source property imgSelected.Source = new BitmapImage(new Uri(filenameSteg, UriKind.Absolute)); in a WPF application. The thing is, I need to open that file again later but…
Marks
  • 165
  • 4
  • 19
0
votes
2 answers

How to improve performance of Changing Image Pixel colour using WriteableBitmapEx in Windows 10?

I am currently working on the part where I want to download a set of images and change their pixel colour for example to red, yellow, etc. I did some research and came across a third party API called WriteableBitmapEx. I used the following code and…
0
votes
1 answer

How to store a lot of WriteableBitmap?

I'm working with a set of 400+ images, that I need to modify in different ways. At the end, I need to have almost 1500 images. Let's say they all are 512*512px I want to first apply this modifications in order to get my 1500 images, and keep all…
Charrette
  • 690
  • 1
  • 11
  • 29
0
votes
0 answers

WriteableBitmap generate on thread show on ui

From what i have read and found about the writablebitmap am i not able to change it in a different thread then the one that created it. But i should be able to created it on a diffrent thread then the UI thread, then freze it and parse it to the UI…
Androme
  • 2,399
  • 4
  • 43
  • 82
0
votes
1 answer

WriteableBitmap.render is not working in windows 8.1 c#

is there a way to add WriteableBitmapExwinphone.dll to my project ?
0
votes
0 answers

Resized WriteableBitmap corruption

I have a method to resize the image like below. public static WriteableBitmap ResizedBitmap(BitmapImage imgPhoto, int Width, int Height) { int sourceWidth = (int)imgPhoto.PixelWidth; int sourceHeight = (int)imgPhoto.PixelHeight; …
Blast
  • 955
  • 1
  • 17
  • 40