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;
 }
 public CanvasConfig(Pen stroke, Fill fill)
 {
     _stroke = stroke;
     _fill = fill;
 }
Exemple #3
0
 public object Clone()
 {
     var clone = new Fill(_color);
     return clone;
 }