Пример #1
0
 protected override Geometry CreateClip(bool isStroked)
 {
     PaintDotNet.UI.Media.DeviceBitmap deviceBitmap = this.DeviceBitmap;
     if (deviceBitmap == null)
     {
         return(new RectangleGeometry(RectDouble.Zero));
     }
     return(new RectangleGeometry(new RectDouble(PointDouble.Zero, deviceBitmap.Size)));
 }
Пример #2
0
 protected override void OnRender(IDrawingContext dc)
 {
     PaintDotNet.UI.Media.DeviceBitmap deviceBitmap = this.DeviceBitmap;
     if (deviceBitmap != null)
     {
         SizeDouble size = deviceBitmap.Size;
         RectDouble num2 = new RectDouble(PointDouble.Zero, size);
         dc.DrawBitmap(deviceBitmap, new RectDouble?(num2), 1.0, BitmapInterpolationMode.Linear, new RectDouble?(num2));
     }
 }
Пример #3
0
 public DeviceBitmapDrawing(PaintDotNet.UI.Media.DeviceBitmap deviceBitmap)
 {
     this.DeviceBitmap = deviceBitmap;
 }