How to use writeablebitmapex for windows8 store app (c# metro) on vs2013

Dec 8, 2013 at 6:43 PM
Hi all,

I'm trying to use the lib i used on a windows phone 8 app where i appreciated it... But it seems that the project doesn't load the lib and so when i try to write the following code:
        Image uielement = new Image();
        uielement.Stretch = Stretch.Uniform;
        uielement.Source = bitmap;
        WriteableBitmap overlayBitmap = new WriteableBitmap(uielement, null);
I get an error :
Error 1 The best overloaded method match for 'Windows.UI.Xaml.Media.Imaging.WriteableBitmap.WriteableBitmap(int, int)' has some invalid arguments

I don't know what to do...

Ide: vs2013
OS: windows8.1

I referenced the lib into the NetCore45 folder...

Thanks in advance for all your replies....

Dec 9, 2013 at 5:48 AM
The WinRT version of the WriteableBitmap doesn't provide a .Render method, Look into the RenderTargetBitmap class. See this recent blog post for more info:
  • Rene