I have a RenderTargetBitmap
, I need to convert it to BitmapImage
. Please check the code below.
RenderTargetBitmap bitMap = getRenderTargetBitmap();
Image image = new Image();// This is a Image
image.Source = bitMap;
In the above code I have used Image.Now I need to use a BitmapImage. How can I do this?
RenderTargetBitmap bitMap = getRenderTargetBitmap();
BitmapImage image = new BitmapImage();// This is a BitmapImage
// how to set bitMap as source of BitmapImage ?