public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { System.Windows.Media.Imaging.BitmapImage image = (System.Windows.Media.Imaging.BitmapImage)value; return(image?.ToGDIBitmap()); }