我无法理解如何FormatConvertedBitmap将WriteableBitmap我拥有的a 转换Pbgra32为Bgr32. 我正在构建的应用程序最初使用 Bgr32,我介绍了WriteableBitmapEx(使用 Pbgra32)来翻转图像。现在,我需要从Pbgra32back 转换为Bgr32以保持与程序其余部分的一致性。以下是我所拥有的:
FormatConvertedBitmap newFormat = new FormatConvertedBitmap(this.colorBitmap, PixelFormats.Bgr32, null, 0);
...我认为这对于进行转换是正确的。但是,我不确定如何从中检索 WriteableBitmap。