How do I get a RenderTargetBitmap object into a SoftwareBitmap? It is possible to get a RenderTargetBitmap as Image Source and on the other side i can use a SoftwareBitmap as a SoftwareBitmapSource and turn that into an ImageSource. But how can I convert RenderTargetBitmap directly to SoftwareBitmap?
1 Answer
RenderTargetBitmap.GetPixelsAsync returns an IBuffer which you can copy into a SoftwareBitmap with SoftwareBitmap.CreateCopyFromBuffer
1 Comment
kkica
How can I covert it to a CanvasBitmap later? I am using CanvasBitmap.CreateFromSoftwareBitmap but i get System.Exception: The bitmap pixel format is unsupported.