public AddPath ( |
||
addingPath | ||
connect | bool | |
return | void |
GraphicsPath myPath = new GraphicsPath(); myPath.AddLine(10, 10, 50, 10); Rectangle rect = new Rectangle(50, 10 ,20, 20); myPath.AddRectangle(rect);
GraphicsPath myPath = new GraphicsPath(); myPath.AddEllipse(10, 10, 100, 50); PointF[] curvePoints = new PointF[] { new PointF(75, 10), new PointF(100, 50), new PointF(50, 50) }; myPath.AddCurve(curvePoints);In both examples, we create a GraphicsPath object and add shapes to it using the various AddXXX methods. The resulting GraphicsPath object can then be drawn using a Graphics object. These examples use the System.Drawing.dll library.
public AddPath ( |
||
addingPath | ||
connect | bool | |
return | void |