//Начало рисования фигуры private void canvas1_MouseDown(object sender, MouseEventArgs e) { shape = ShapeCreator.CreateShape(currentShape); shape.Pen = new Pen(this.btnStrokeColor.BackColor, float.Parse(cmbThickness.Text)); shape.Brush = cbIsTransparent.Checked ? new SolidBrush(Color.Transparent) : new SolidBrush(btnFillColor.BackColor); shape.StartDraw(e.Location, this.canvas1); }
public void startGraphics(Graphics g) { graphicEngine = new GraphicEngine(g); graphicEngine.StartDraw(); }