How do I convert a WriteableBitmap object to a BitmapImage Object in WPF
How do I convert a WriteableBitmap object to a BitmapImage Object in WPF? This link covers silverlight, the process is not the same in WPF as the WriteableBitmap object does not have a SaveJpeg method. So my question is How do I convert a WriteableBitmap object to a BitmapImage Object in WPF? You can use one of the BitmapEncoders to save the WriteableBitmap frame to a new BitmapImage In this example we will use the PngBitmapEncoder but just choose the one that fits your situation. public BitmapImage ConvertWriteableBitmapToBitmapImage(WriteableBitmap wbm) { BitmapImage bmImage = new