Пример #1
0
 public BitmapDataSource(IImagePointerDataSource dataSource, IBitmapFactory imageFactory)
     : base(dataSource)
 {
     this.CurrentValue = new Bitmap(dataSource.Width, dataSource.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
     this.size         = new IntSize(this.CurrentValue.Width, this.CurrentValue.Height);
     this.imageFactory = imageFactory;
 }
Пример #2
0
 public ImageDataSource(IImagePointerDataSource dataSource, IImageFactory imageFactory)
     : base(dataSource)
 {
     this.writeableBitmap = new WriteableBitmap(dataSource.Width, dataSource.Height, 96, 96, PixelFormats.Bgr24, null);
     this.CurrentValue    = writeableBitmap;
     this.size            = new IntSize(dataSource.Width, dataSource.Height);
     this.imageFactory    = imageFactory;
 }
Пример #3
0
 public TestableImageSource(IImagePointerDataSource dataSource, IBitmapFactory imageFactory)
     : base(dataSource, imageFactory)
 {
 }
Пример #4
0
 public TestableImageSource(IImagePointerDataSource dataSource, IBitmapFactory imageFactory)
     : base(dataSource, imageFactory)
 { }