예제 #1
0
 public void UpdateImage(BitmapSource image)
 {
     m_data = ClipboardImageHelper.BitmapSourceToByteArray(new PngBitmapEncoder(), image);
 }
예제 #2
0
 public ImageItem(long index, BitmapSource image) : base(index)
 {
     Title  = $"{s_titleTemplate}_{index}";
     m_type = DataKind.Image;
     m_data = ClipboardImageHelper.BitmapSourceToByteArray(new PngBitmapEncoder(), image);
 }