Oct 30, 2012 at 7:01 AM
Edited Oct 30, 2012 at 7:02 AM
I have an object of IRandomAccessStream and i need to create writeable from this stream .
For this i am trying this asbelow. Here dockpic is stream object and image is image element in xaml page.
WriteableBitmap writeableBmp = await new WriteableBitmap(0,0).FromStream(dockpic);
image.Source = writeableBmp;
My stream is right because i tried in normal case as
BitmapImage dockimage = new BitmapImage();
image.Source = dockimage;
In this case image is displaying rt.
Please guide me where i am doing wrong or any other way for this ?
Thanks in Advance