I am having trouble understanding how to use FormatConvertedBitmap to convert a WriteableBitmap I have from Pbgra32 to Bgr32. The application I'm building was initially using Bgr32, and I introduced WriteableBitmapEx (which uses Pbgra32) to flip an image. Now, I need to convert from Pbgra32 back to Bgr32 to maintain consistency with the rest of the program. The following is what I have:
FormatConvertedBitmap newFormat = new FormatConvertedBitmap(this.colorBitmap, PixelFormats.Bgr32, null, 0);
...which I believe to be correct for doing the conversion. However, I am unsure how to retrieve a WriteableBitmap from this.