GraphicsPath.StartFigure Method ()


Starts a new figure without closing the current figure. All subsequent points added to the path are added to this new figure.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

member StartFigure : unit -> unit

The user must keep the original points if they are needed. The original points are converted to cubic Bézier control points internally, therefore there is no mechanism for returning the original points.

This method starts a new subpath in the path. Subpaths allow you to separate a path into sections and use the GraphicsPathIterator class to iterate through the subpaths.

The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, an OnPaint event object. The code performs the following actions:

  • Creates a path.

  • Adds two sets of figures. The first set of figures combines four primitives into two figures. The second set of figures combines the same four primitives (except that they are offset in the y-axis) into three figures.

  • Draws all the figures to the screen.

Notice the difference in the appearance between the two sets of figures.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top