Code:
Arc:
e.Graphics.DrawArc(Pens.Black, x, y, width, height, start, end);
Pie:
e.Graphics.DrawPie(Pens.Black, x, y, width, height, start, end);
Polygon:
e.Graphics.DrawPolygon(Pens.Black, new []{...});
Bézier:
e.Graphics.DrawBezier(Pens.Black, x1, y1, x2, y2, x3, y3, x4, y4);
ClosedCurve:
e.Graphics.DrawClosedCurve(Pens.Black, new []{...}, tension, fillmode);
Note: You can replace "Draw" with "Fill" and "Pens" with "Brushes" if you want you shapes to have fills instead of contour only
Post a Comment (0)