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
2
votes
1 answer

Prevent image clipping during rotation Windows Phone

I am using the WriteableBitmapEx extension method to rotate a WriteableBitmap. bi in the code is a WritableBitmap. The RotateFree method rotates the bitmap in any degree and returns a new rotated WritableBitmap. My code: private void rotate() …
PutraKg
  • 2,226
  • 3
  • 31
  • 60
2
votes
1 answer

Overlay a smaller image over larger image using WriteableBitmapEx Windows Phone

In my hidden object game, I want to mark the object with a circle image when found with the following code where AnsX1, AnsX2, AnsY1, an AnsY2 is the pixel coordinates of the object location. The circle image should be resized according to the…
PutraKg
  • 2,226
  • 3
  • 31
  • 60
2
votes
2 answers

WriteableBitmapEx Windows Phone dll's

I am currently trying to overlay two bitmaps using WriteableBitmapEx using this method found in the documentation: writeableBmp.Blit(new Point(10, 10), bitmap, sourceRect, Colors.White,WriteableBitmapExtensions.BlendMode.Additive); I…
James Mundy
  • 4,180
  • 6
  • 35
  • 58
2
votes
1 answer

WriteableBitmapEx not working for C# metro app

I downloaded WriteableBitmapEx for winrt (win 8 metro). I added a reference to the dll with the extension methods , used them in my code , every thing compiles ok. The problem is that the extension methods have no effect. Here is part of my…
2
votes
3 answers

In WinRT, how do I load an image and then wait only as long as is needed for it to load before writing to it?

I'm using WriteableBitmapEx in a WinRT project. I load an image into a WriteableBitmap from the users Picture library. However, I cannot then immediately write to that image, if I do, it will be overwritten with the image itself (it seems like…
1
vote
1 answer

Using WriteableBitmapEx

I am currently developing metro apps and I need to write text On images. I found this http://writeablebitmapex.codeplex.com/ But I am new to XAML and dosent know how to use it specifically. So can anyone say me how do I use it in order to write text…
coder
  • 13,002
  • 31
  • 112
  • 214
1
vote
1 answer

set WriteableBitmap image to background in windows phone 7

using the WriteableBitMapExWPhone I have successful create the image with mask effect, however I wonder how can I set that image to be my page background? My code below: ImageBrush imageBrush = new ImageBrush(); ImageBrush…
Nghia Nguyen
  • 2,585
  • 4
  • 25
  • 38
1
vote
1 answer

Artifacts on Avalonia WriteableBitmap BitmapContext

I am trying to write WriteableBitmapEx BitmapContext for Avalonia WrieableBitmap class. Code successfuly sets pixels of color I want, and gets them, but BitmapContext messes some pixels with color I didn't set. For example I provided it should set 4…
flabbet
  • 327
  • 3
  • 14
1
vote
1 answer

few methods missing in WriteableBitmapEx

As i see the codeplex site for WriteableBitmapEx :- http://writeablebitmapex.codeplex.com/ I can see methods like flip,rotate etc. But when i download the assembly, add reference and check for these methods they are not available. Can anybody tell…
TCM
  • 16,780
  • 43
  • 156
  • 254
1
vote
1 answer

C# WriteableBitmapEx Pixels Premultiplying Bit-shifting

This is about extracting the RGB from a pixel value. Here is the code snippet: Byte a = (Byte)(myColor >> 24); // Prevent division by zero UInt32 ai = a; if (ai == 0) { ai = 1; } ai…
descf
  • 1,302
  • 1
  • 12
  • 31
1
vote
1 answer

UWP Encode WriteableBitmap to JPEG byte array

I'm trying to encode WriteableBitmap to JPEG byte array. But actually I found examples with the SaveJpeg method which does not exist now. So I tried the ToStreamAsJpeg method but this method does not work. With the step by step I don't get out of…
Samuel LIOULT
  • 594
  • 5
  • 21
1
vote
1 answer

Dashed line using writeablebitmap

Are there a way when using writeablebitmap with writeablebitmapEx to draw a dashed line? Without having to manually calculate the dashes and create multiple lines to create the dashing effect?
Androme
  • 2,399
  • 4
  • 43
  • 82
1
vote
1 answer

Merging two or more images in WP 8.1 RT

I'm trying to create a bigger image by repeated tiling multiple small images. How can I do this in C# / WP8.1? I've tried to merge byte arrays (simple appending doesn't work), tried to render on XAML (doesn't work, get separation lines with some…
1
vote
1 answer

WriteableBitmapExtension crashes app on device

I have added a WriteableBitmapExtension via NuGet to my Windows Phone 8.1 WinRT app. I have functions to capture an image from camera and save it to picture library. I tried rotate captured image before save and I found solution here WriteableBitmap…
1
vote
0 answers

Windows phone 8 writeablebitmap get object drawn

Is there any way to get object drawn by writeablebitmapex in windows phone 8. In my case, i want to get eclipse which drawn previously to delete or move its. For now, i add eclipse by this code: int ansX1 = Convert.ToInt32(left-10); …