示例#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);
 }
示例#2
0
 public void DrawPath(PaintPen pen, PaintGraphicsPath path)
 {
     _graphics.DrawPath(pen.ToPen(), path.ToGraphicsPath());
 }
示例#3
0
 public void DrawLine(PaintPen pen, int x1, int y1, int x2, int y2)
 {
     _graphics.DrawLine(pen.ToPen(), x1, y1, x2, y2);
 }
示例#4
0
 public void DrawLine(PaintPen pen, ShapePoint pt1, ShapePoint pt2)
 {
     _graphics.DrawLine(pen.ToPen(), pt1.ToPoint(), pt2.ToPoint());
 }
示例#5
0
 public void DrawRectangle(PaintPen pen, int x, int y, int width, int height)
 {
     _graphics.DrawRectangle(pen.ToPen(), x, y, width, height);
 }
示例#6
0
 public void DrawRectangle(PaintPen pen, float x, float y, float width, float height)
 {
     _graphics.DrawRectangle(pen.ToPen(), x, y, width, height);
 }
示例#7
0
 public void DrawCurve(PaintPen pen, PointF[] points, float tension)
 {
     _graphics.DrawCurve(pen.ToPen(), points, tension);
 }
示例#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);
 }
示例#9
0
 public void DrawLine(PaintPen pen, PointF pt1, PointF pt2)
 {
     _graphics.DrawLine(pen.ToPen(), pt1, pt2);
 }