【发布时间】:2020-12-23 21:14:12
【问题描述】:
我将 jpg 图像转换为 SoftwareBitmap 对象,我希望它能工作。代码如下。
SoftwareBitmap softwareBitmap;
using (IRandomAccessStream stream = await file.OpenAsync(FileAccessMode.Read))
{
// Create the decoder from the stream
BitmapDecoder decoder = await BitmapDecoder.CreateAsync(stream);
// Get the SoftwareBitmap representation of the file
softwareBitmap = await decoder.GetSoftwareBitmapAsync();
}
所以我现在不知道如何使用这个softwareBitmap制作.bmp文件。提前谢谢。
【问题讨论】: