Пример #1
0
 public Rect(Point startP, Point endP)
 {
     startPoint = startP;
     endPoint = endP;
     DrawSettings = new DrawSettings(1, Color.Black, Color.Transparent);
     keyPoints = PaintHelper.PointsFromRect(PaintHelper.NormalizeRect(startPoint, endPoint));
 }
Пример #2
0
 public Circle(Point startP, Point endP)
     : base(startP, endP)
 {
     DrawSettings = new DrawSettings(1, Color.Black, Color.Transparent);
     KeyPoints = PaintHelper.PointsFromRect(NormalRectToSquare(PaintHelper.NormalizeRect(startP, endP)));
 }
Пример #3
0
 public Line(Point startP, Point endP)
 {
     startPoint = startP;
     endPoint = endP;
     DrawSettings = new DrawSettings(2, Color.Black, Color.Transparent);
 }