Example #1
0
 public void DrawPolygon(PaintPen pen, ShapePoint[] points)
 {
     Point[] point = new Point[points.Length];
     for (int i = 0; i < points.Length; i++)
     {
         point[i] = points[i].ToPoint();
     }
     _graphics.DrawPolygon(pen.ToPen(), point);
 }
Example #2
0
 public void DrawPath(PaintPen pen, PaintGraphicsPath path)
 {
     _graphics.DrawPath(pen.ToPen(), path.ToGraphicsPath());
 }
Example #3
0
 public void DrawLine(PaintPen pen, int x1, int y1, int x2, int y2)
 {
     _graphics.DrawLine(pen.ToPen(), x1, y1, x2, y2);
 }
Example #4
0
 public void DrawLine(PaintPen pen, ShapePoint pt1, ShapePoint pt2)
 {
     _graphics.DrawLine(pen.ToPen(), pt1.ToPoint(), pt2.ToPoint());
 }
Example #5
0
 public void DrawRectangle(PaintPen pen, int x, int y, int width, int height)
 {
     _graphics.DrawRectangle(pen.ToPen(), x, y, width, height);
 }
Example #6
0
 public void DrawRectangle(PaintPen pen, float x, float y, float width, float height)
 {
     _graphics.DrawRectangle(pen.ToPen(), x, y, width, height);
 }
Example #7
0
 public void DrawCurve(PaintPen pen, PointF[] points, float tension)
 {
     _graphics.DrawCurve(pen.ToPen(), points, tension);
 }
Example #8
0
 public void DrawArc(PaintPen pen, int x, int y, int width, int height, int startAngle, int sweepAngle)
 {
     _graphics.DrawArc(pen.ToPen(), x, y, width, height, startAngle, sweepAngle);
 }
Example #9
0
 public void DrawLine(PaintPen pen, PointF pt1, PointF pt2)
 {
     _graphics.DrawLine(pen.ToPen(), pt1, pt2);
 }