示例#1
0
 public override void Bezig(Graphics g, Point p1, Point p2)
 {
     if ((Control.ModifierKeys & Keys.Shift) != 0)
     {
         Rectangle rect = TweepuntTool.Punten2Vierkant(p1, p2);
         g.FillEllipse(kwast, rect);
         lastDrawnShape = new DrawnFilledEllipse(new Point(rect.Left, rect.Top), new Point(rect.Right, rect.Bottom), schetscontrol.PenKleur);
     }
     else
     {
         g.FillEllipse(kwast, TweepuntTool.Punten2Rechthoek(p1, p2));
         lastDrawnShape = new DrawnFilledEllipse(p1, p2, schetscontrol.PenKleur);
     }
 }
示例#2
0
 public override void Bezig(Graphics g, Point p1, Point p2)
 {
     if ((Control.ModifierKeys & Keys.Shift) != 0)
     {
         Rectangle rect = TweepuntTool.Punten2Vierkant(p1, p2);
         g.DrawRectangle(MaakPen(kwast, brushWidth), rect);
         lastDrawnShape = new DrawnRectangle(new Point(rect.X, rect.Y), new Point(rect.Right, rect.Bottom), brushWidth, ((SolidBrush)kwast).Color);
     }
     else
     {
         g.DrawRectangle(MaakPen(kwast, brushWidth), TweepuntTool.Punten2Rechthoek(p1, p2));
         lastDrawnShape = new DrawnRectangle(p1, p2, brushWidth, ((SolidBrush)kwast).Color);
     }
 }