简体   繁体   English

C#RenderTargetBitmap到SoftwareBitmap

[英]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.

相关问题 如何在 UWP C# 中裁剪 SoftwareBitmap - How to crop SoftwareBitmap in UWP C# 不支持的位图格式。 字节数组到SoftwareBitmap(UWP C#) - Unsupportable bitmap format. Byte array to SoftwareBitmap (UWP C#) C#(MediaFrameReader API)SoftwareBitmap不显示 - C# (MediaFrameReader API) SoftwareBitmap doesn't show 在图像控件上显示SoftwareBitmap而不保存到UWP C#中的文件 - Display SoftwareBitmap on image control without saving to file in UWP C# 如何将 SoftwareBitmap object 保存到 bmp 文件 C#, UWP - How to save SoftwareBitmap object to bmp file C#, UWP WPF,C#,viewport3D的renderTargetBitmap而不将其分配给窗口 - wpf, c#, renderTargetBitmap of viewport3D without assigning it to a window 在 UWP C# 中不使用 MediaComposition 从 SoftwareBitmap 或 Direct3DSurface 创建视频文件 - Creating a video file from SoftwareBitmap or Direct3DSurface without MediaComposition in UWP C# 将ByteArray转换为Python中从SoftwareBitmap框架在C#Windows.Graphic.Imaging上接收的图像文件 - Convert ByteArray to Image File received in Python from SoftwareBitmap frame on C# Windows.Graphic.Imaging 如何设置UWP C#StorageFile将SoftwareBitmap存储到特定路径 - how to set up UWP C# StorageFile to store a SoftwareBitmap to a specific path 在WinRT C#中,如何使用RenderTargetBitmap保存屏幕外XAML树? - In WinRT C# how do I save an offscreen XAML tree using RenderTargetBitmap?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM