Ejemplo n.º 1
0
 public BitmapImplementation(ClipboardObject clipboardObject, ClipboardImplementationFactory factory, BitmapEquatableFormat source) : base(source.Format, factory, clipboardObject)
 {
     fileName = DiContainer.SP.GetService <ITempManager>().GetNewFileName("bmp");
     Size     = source.Size;
     if (source.HasCalculatedHash())
     {
         hash = source.GetHash();
     }
     source.BitmapSource.Save(fileName, new BmpBitmapEncoder());
 }
Ejemplo n.º 2
0
 public BitmapImplementation(ClipboardFormat format, ClipboardImplementationFactory factory, ClipboardImplementation parent, BitmapSource bitmap) : base(format, factory, parent)
 {
     fileName = DiContainer.SP.GetService <ITempManager>().GetNewFileName("bmp");
     Size     = new IntSize(bitmap.PixelWidth, bitmap.PixelHeight);
     bitmap.Save(fileName, new BmpBitmapEncoder());
 }
Ejemplo n.º 3
0
 public BitmapEquatableFormat(ClipboardFormat format, BitmapSource bitmapSource) : base(format)
 {
     BitmapSource = bitmapSource;
     Size         = new IntSize(bitmapSource.PixelWidth, bitmapSource.PixelHeight);
 }