[英]C# RenderTargetBitmap to SoftwareBitmap
How do I get a RenderTargetBitmap object into a SoftwareBitmap? 如何将RenderTargetBitmap对象放入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. 可以将RenderTargetBitmap用作图像源,另一方面,我可以将SoftwareBitmap用作SoftwareBitmapSource并将其转换为ImageSource。 But how can I convert RenderTargetBitmap directly to SoftwareBitmap? 但是,如何将RenderTargetBitmap直接转换为SoftwareBitmap?
RenderTargetBitmap. RenderTargetBitmap。 GetPixelsAsync returns an IBuffer which you can copy into a SoftwareBitmap with SoftwareBitmap. GetPixelsAsync返回一个IBuffer,您可以使用SoftwareBitmap将其复制到SoftwareBitmap中。 CreateCopyFromBuffer CreateCopyFromBuffer
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.