Convert WriteableBitmap pixel format to Bgra32 in c# wpf
I have found the solution:
if (bmpSource.Format != PixelFormats.Bgra32) bmpSource = new FormatConvertedBitmap(bmpSource, PixelFormats.Bgra32, null, 0);
I have found the solution:
if (bmpSource.Format != PixelFormats.Bgra32) bmpSource = new FormatConvertedBitmap(bmpSource, PixelFormats.Bgra32, null, 0);