예제 #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);
 }