Exemple #1
0
 //Начало рисования фигуры
 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);
 }
Exemple #2
0
 public void startGraphics(Graphics g)
 {
     graphicEngine = new GraphicEngine(g);
     graphicEngine.StartDraw();
 }