Closed kaki104 closed 10 years ago
The implicit conversion back and forth between Bitmap
and WriteableBitmap
is incorporated in the target specific versions of the Shim.System.Drawing assembly. For Windows Store you can see the source code here. In your Windows Store application you should thus replace the PCL version of Shim.System.Drawing with the Windows Store specific version. You can find all binaries that you need here.
Add reference in PCL folder AForge AForge.Imaging AForge.Math
Add reference in Store folder Shim.System Shim.System.Drawing
Thank you very much, this project is great!
You are welcome. Glad to hear it works.
Best regards, Anders @ Cureos
Hi Search today and yesterday, try it but, it is all that failed to work.
This is store app defind class public sealed class WriteableBitmap : BitmapSource { // Summary: // Initializes a new instance of the WriteableBitmap class. // // Parameters: // pixelWidth: // The width of the bitmap in pixels. // // pixelHeight: // The height of the bitmap in pixels. public WriteableBitmap(int pixelWidth, int pixelHeight);
I can't find this method public WriteableBitmap(BitmapSource source);
How can i convert WriteableBitmap to Bitmp? Thank you