Ejemplo n.º 1
0
 public FlyingDragon(Graphics g, int width, int height, Pen stroke, Fill fill, int interval)
 {
     _g = g;
     GraphicManager = BufferedGraphicsManager.Current;
     GraphicManager.MaximumBuffer =
         new Size(width + 1, height + 1);
     ManagedBackBuffer =
         GraphicManager.Allocate(_g, new Rectangle(0, 0, width, height));
     _ctx = new CanvasRenderingContext2D(ManagedBackBuffer.Graphics, null, stroke, fill, false);
     this.interval = interval;
 }
Ejemplo n.º 2
0
 public CanvasConfig(Pen stroke, Fill fill)
 {
     _stroke = stroke;
     _fill = fill;
 }
Ejemplo n.º 3
0
 public object Clone()
 {
     var clone = new Fill(_color);
     return clone;
 }