Example #1
0
 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ImageConverter.ImageToByteArray((BitmapImage)value));
 }
Example #2
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ImageConverter.ByteArrayToImage((byte[])value));
 }