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

How to draw in Windows Phone 8.1 on WriteableBitmap?

I am trying to make an application with drawing pad. I choose WriteableBitmapEx for my purposes and started developing. I followed the short tutorial on the official site of this library but unfortunately I can't draw with SetPixel(...) on my…
ichernob
  • 357
  • 2
  • 13
0
votes
2 answers

How do I take screenshot for Windows Phone 8.1 in WinRT?

I know how to do this in Silverlight but I can't find enough information on how to do this in WinRT. I read that WinRT XAML Toolkit may be able to help but the exact component, WinRT XAML Toolkit - Composition does not seem to be compatible with…
0
votes
1 answer

Bitmap to WriteableBitmap C#

Hi guys I'm trying to get a pixel value from an image taken using a windows phone camera. But it seems as though I am creating an empty writeable bitmap instead of converting the photo loaded into a writeable bitmap. I'm a beginner with c#. Any…
0
votes
0 answers

Getting pixel rgb value using writeablebitmapex c#

I'm creating an app that allows the user to upload/take an image and then see the rgb code from a pixel in that image. ATM I'm trying to get a pixel rgb code to show in the ui under the image. But I'm struggling to get any data at all. At the…
0
votes
1 answer

Weird WriteableBitmap FromStream issue

I am desperately trying to load a WriteableBitmap with the FromStream extension method. The code below throws a System.InvalidOperationException at the FromStream() call with the following information: BitmapImage has not been initialized. Call…
thumbmunkeys
  • 20,606
  • 8
  • 62
  • 110
0
votes
0 answers

How to improve performance of WriteableBitmap.GetPixel() on ManipulationDelta?

I have the following code in my Universal App (Windows Phone): void colourPicker_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e) { PicturePicker picturePicker = sender as PicturePicker; …
Niels
  • 2,496
  • 5
  • 24
  • 38
0
votes
1 answer

How to get pixel color from a Point in image with WriteableBitmapEx in WinRT?

I'm porting my current (Silverlight) WP8.0 app to a Universal Windows application. In this application I have a control that allows the user to use a custom dial control. When the dial stops, the app should get the pixel color from that specific…
Niels
  • 2,496
  • 5
  • 24
  • 38
0
votes
1 answer

How to save a grid as a bitmap Image in the local storage in windows 8

I am very new to Windows 8 application development. I am developing an application which requires to save a grid as Bitmap Image in local storage. I have tried by using writable bitmap but i didn't get the solution. Then I searched for the samples…
0
votes
0 answers

WriteableBitmap.Lock() throws AccessViolationException

Ok so I have an application that makes heavy use of WriteableBitmap via the WriteableBitmapEx open source library. Sometimes, rarely (and not sure the exact conditions to cause), calling WriteableBitmap.Lock() throws an AccessViolationException.…
Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178
0
votes
2 answers

Resize image from photo album

I want to get a certain photo from the Camera Roll album, resize it and save it to my isolated storage so I can bind to it later - how would I go about it? using (var library = new MediaLibrary()) { PictureAlbumCollection allAlbums =…
0
votes
0 answers

How to Convolute Image using WriteableBitmapEx

I would like use WriteableBitmapEx to convolute an image. In my implementation I am receiving an image but I cannot tell any difference. MainPage.xaml.cs public WriteableBitmap Process(WriteableBitmap input) { WriteableBitmap finalbmp =…
Matthew
  • 3,976
  • 15
  • 66
  • 130
0
votes
2 answers

How to Perform Edge Detection on Image in Windows Phone 8

I am new to image processing, and would like to implement an edge detection feature in my application. After seeing a few examples, the Sobel 3x3 method stands out as the one I would like to try. I was referencing…
Matthew
  • 3,976
  • 15
  • 66
  • 130
0
votes
1 answer

Share WriteableBitmap as File

I'm currently writing a small image editing app for the Windows Store in which I'd like to make use of the share charm for edited images. As some apps do only accept StorageFiles and not Bitmaps (like the default Mail App) I'd like to offer the…
0
votes
2 answers

Async Image editing with WriteableBitmapEx

I'm currently writing a small Image editing app for the Windows Store (WinRT) using the great WriteableBitmapEx Framework. As functions like .convolute can take a while on WinRT devices (tested on Surface) I'd like to make those requests async so…
Thomas
  • 4,030
  • 4
  • 40
  • 79
0
votes
1 answer

Bliting two WriteableBitmap with WriteableBitmapEx

I tried to blit two writeablebitmap. However, the debugger prompted a error message stating the followings: The input WriteableBitmap needs to have the Pbgra32 pixel format. Use the BitmapFactory.ConvertToPbgra32Format method to automatically…
Adam Aiken
  • 418
  • 7
  • 18