TechNet
Export (0) Print
Expand All

GraphicsPath Class

 

Represents a series of connected lines and curves. This class cannot be inherited.

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

System.Object
  System.MarshalByRefObject
    System.Drawing.Drawing2D.GraphicsPath

public sealed class GraphicsPath : MarshalByRefObject, ICloneable, 
	IDisposable

NameDescription
System_CAPS_pubmethodGraphicsPath()

Initializes a new instance of the GraphicsPath class with a FillMode value of Alternate.

System_CAPS_pubmethodGraphicsPath(FillMode)

Initializes a new instance of the GraphicsPath class with the specified FillMode enumeration.

System_CAPS_pubmethodGraphicsPath(Point[], Byte[])

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays.

System_CAPS_pubmethodGraphicsPath(Point[], Byte[], FillMode)

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode enumeration element.

System_CAPS_pubmethodGraphicsPath(PointF[], Byte[])

Initializes a new instance of the GraphicsPath array with the specified PathPointType and PointF arrays.

System_CAPS_pubmethodGraphicsPath(PointF[], Byte[], FillMode)

Initializes a new instance of the GraphicsPath array with the specified PathPointType and PointF arrays and with the specified FillMode enumeration element.

NameDescription
System_CAPS_pubpropertyFillMode

Gets or sets a FillMode enumeration that determines how the interiors of shapes in this GraphicsPath are filled.

System_CAPS_pubpropertyPathData

Gets a PathData that encapsulates arrays of points (points) and types (types) for this GraphicsPath.

System_CAPS_pubpropertyPathPoints

Gets the points in the path.

System_CAPS_pubpropertyPathTypes

Gets the types of the corresponding points in the PathPoints array.

System_CAPS_pubpropertyPointCount

Gets the number of elements in the PathPoints or the PathTypes array.

NameDescription
System_CAPS_pubmethodAddArc(Int32, Int32, Int32, Int32, Single, Single)

Appends an elliptical arc to the current figure.

System_CAPS_pubmethodAddArc(Rectangle, Single, Single)

Appends an elliptical arc to the current figure.

System_CAPS_pubmethodAddArc(RectangleF, Single, Single)

Appends an elliptical arc to the current figure.

System_CAPS_pubmethodAddArc(Single, Single, Single, Single, Single, Single)

Appends an elliptical arc to the current figure.

System_CAPS_pubmethodAddBezier(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Adds a cubic Bézier curve to the current figure.

System_CAPS_pubmethodAddBezier(Point, Point, Point, Point)

Adds a cubic Bézier curve to the current figure.

System_CAPS_pubmethodAddBezier(PointF, PointF, PointF, PointF)

Adds a cubic Bézier curve to the current figure.

System_CAPS_pubmethodAddBezier(Single, Single, Single, Single, Single, Single, Single, Single)

Adds a cubic Bézier curve to the current figure.

System_CAPS_pubmethodAddBeziers(Point[])

Adds a sequence of connected cubic Bézier curves to the current figure.

System_CAPS_pubmethodAddBeziers(PointF[])

Adds a sequence of connected cubic Bézier curves to the current figure.

System_CAPS_pubmethodAddClosedCurve(Point[])

Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.

System_CAPS_pubmethodAddClosedCurve(Point[], Single)

Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.

System_CAPS_pubmethodAddClosedCurve(PointF[])

Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.

System_CAPS_pubmethodAddClosedCurve(PointF[], Single)

Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.

System_CAPS_pubmethodAddCurve(Point[])

Adds a spline curve to the current figure. A cardinal spline curve is used because the curve travels through each of the points in the array.

System_CAPS_pubmethodAddCurve(Point[], Int32, Int32, Single)

Adds a spline curve to the current figure.

System_CAPS_pubmethodAddCurve(Point[], Single)

Adds a spline curve to the current figure.

System_CAPS_pubmethodAddCurve(PointF[])

Adds a spline curve to the current figure. A cardinal spline curve is used because the curve travels through each of the points in the array.

System_CAPS_pubmethodAddCurve(PointF[], Int32, Int32, Single)

Adds a spline curve to the current figure.

System_CAPS_pubmethodAddCurve(PointF[], Single)

Adds a spline curve to the current figure.

System_CAPS_pubmethodAddEllipse(Int32, Int32, Int32, Int32)

Adds an ellipse to the current path.

System_CAPS_pubmethodAddEllipse(Rectangle)

Adds an ellipse to the current path.

System_CAPS_pubmethodAddEllipse(RectangleF)

Adds an ellipse to the current path.

System_CAPS_pubmethodAddEllipse(Single, Single, Single, Single)

Adds an ellipse to the current path.

System_CAPS_pubmethodAddLine(Int32, Int32, Int32, Int32)

Appends a line segment to the current figure.

System_CAPS_pubmethodAddLine(Point, Point)

Appends a line segment to this GraphicsPath.

System_CAPS_pubmethodAddLine(PointF, PointF)

Appends a line segment to this GraphicsPath.

System_CAPS_pubmethodAddLine(Single, Single, Single, Single)

Appends a line segment to this GraphicsPath.

System_CAPS_pubmethodAddLines(Point[])

Appends a series of connected line segments to the end of this GraphicsPath.

System_CAPS_pubmethodAddLines(PointF[])

Appends a series of connected line segments to the end of this GraphicsPath.

System_CAPS_pubmethodAddPath(GraphicsPath, Boolean)

Appends the specified GraphicsPath to this path.

System_CAPS_pubmethodAddPie(Int32, Int32, Int32, Int32, Single, Single)

Adds the outline of a pie shape to this path.

System_CAPS_pubmethodAddPie(Rectangle, Single, Single)

Adds the outline of a pie shape to this path.

System_CAPS_pubmethodAddPie(Single, Single, Single, Single, Single, Single)

Adds the outline of a pie shape to this path.

System_CAPS_pubmethodAddPolygon(Point[])

Adds a polygon to this path.

System_CAPS_pubmethodAddPolygon(PointF[])

Adds a polygon to this path.

System_CAPS_pubmethodAddRectangle(Rectangle)

Adds a rectangle to this path.

System_CAPS_pubmethodAddRectangle(RectangleF)

Adds a rectangle to this path.

System_CAPS_pubmethodAddRectangles(Rectangle[])

Adds a series of rectangles to this path.

System_CAPS_pubmethodAddRectangles(RectangleF[])

Adds a series of rectangles to this path.

System_CAPS_pubmethodAddString(String, FontFamily, Int32, Single, Point, StringFormat)

Adds a text string to this path.

System_CAPS_pubmethodAddString(String, FontFamily, Int32, Single, PointF, StringFormat)

Adds a text string to this path.

System_CAPS_pubmethodAddString(String, FontFamily, Int32, Single, Rectangle, StringFormat)

Adds a text string to this path.

System_CAPS_pubmethodAddString(String, FontFamily, Int32, Single, RectangleF, StringFormat)

Adds a text string to this path.

System_CAPS_pubmethodClearMarkers()

Clears all markers from this path.

System_CAPS_pubmethodClone()

Creates an exact copy of this path.

System_CAPS_pubmethodCloseAllFigures()

Closes all open figures in this path and starts a new figure. It closes each open figure by connecting a line from its endpoint to its starting point.

System_CAPS_pubmethodCloseFigure()

Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

Releases all resources used by this GraphicsPath.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Overrides Object.Finalize().)

System_CAPS_pubmethodFlatten()

Converts each curve in this path into a sequence of connected line segments.

System_CAPS_pubmethodFlatten(Matrix)

Applies the specified transform and then converts each curve in this GraphicsPath into a sequence of connected line segments.

System_CAPS_pubmethodFlatten(Matrix, Single)

Converts each curve in this GraphicsPath into a sequence of connected line segments.

System_CAPS_pubmethodGetBounds()

Returns a rectangle that bounds this GraphicsPath.

System_CAPS_pubmethodGetBounds(Matrix)

Returns a rectangle that bounds this GraphicsPath when this path is transformed by the specified Matrix.

System_CAPS_pubmethodGetBounds(Matrix, Pen)

Returns a rectangle that bounds this GraphicsPath when the current path is transformed by the specified Matrix and drawn with the specified Pen.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLastPoint()

Gets the last point in the PathPoints array of this GraphicsPath.

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodIsOutlineVisible(Int32, Int32, Pen)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen.

System_CAPS_pubmethodIsOutlineVisible(Int32, Int32, Pen, Graphics)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen and using the specified Graphics.

System_CAPS_pubmethodIsOutlineVisible(Point, Pen)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen.

System_CAPS_pubmethodIsOutlineVisible(Point, Pen, Graphics)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen and using the specified Graphics.

System_CAPS_pubmethodIsOutlineVisible(PointF, Pen)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen.

System_CAPS_pubmethodIsOutlineVisible(PointF, Pen, Graphics)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen and using the specified Graphics.

System_CAPS_pubmethodIsOutlineVisible(Single, Single, Pen)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen.

System_CAPS_pubmethodIsOutlineVisible(Single, Single, Pen, Graphics)

Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen and using the specified Graphics.

System_CAPS_pubmethodIsVisible(Int32, Int32)

Indicates whether the specified point is contained within this GraphicsPath.

System_CAPS_pubmethodIsVisible(Int32, Int32, Graphics)

Indicates whether the specified point is contained within this GraphicsPath, using the specified Graphics.

System_CAPS_pubmethodIsVisible(Point)

Indicates whether the specified point is contained within this GraphicsPath.

System_CAPS_pubmethodIsVisible(Point, Graphics)

Indicates whether the specified point is contained within this GraphicsPath.

System_CAPS_pubmethodIsVisible(PointF)

Indicates whether the specified point is contained within this GraphicsPath.

System_CAPS_pubmethodIsVisible(PointF, Graphics)

Indicates whether the specified point is contained within this GraphicsPath.

System_CAPS_pubmethodIsVisible(Single, Single)

Indicates whether the specified point is contained within this GraphicsPath.

System_CAPS_pubmethodIsVisible(Single, Single, Graphics)

Indicates whether the specified point is contained within this GraphicsPath in the visible clip region of the specified Graphics.

System_CAPS_pubmethodReset()

Empties the PathPoints and PathTypes arrays and sets the FillMode to Alternate.

System_CAPS_pubmethodReverse()

Reverses the order of points in the PathPoints array of this GraphicsPath.

System_CAPS_pubmethodSetMarkers()

Sets a marker on this GraphicsPath.

System_CAPS_pubmethodStartFigure()

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTransform(Matrix)

Applies a transform matrix to this GraphicsPath.

System_CAPS_pubmethodWarp(PointF[], RectangleF)

Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.

System_CAPS_pubmethodWarp(PointF[], RectangleF, Matrix)

Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.

System_CAPS_pubmethodWarp(PointF[], RectangleF, Matrix, WarpMode)

Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.

System_CAPS_pubmethodWarp(PointF[], RectangleF, Matrix, WarpMode, Single)

Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.

System_CAPS_pubmethodWiden(Pen)

Adds an additional outline to the path.

System_CAPS_pubmethodWiden(Pen, Matrix)

Adds an additional outline to the GraphicsPath.

System_CAPS_pubmethodWiden(Pen, Matrix, Single)

Replaces this GraphicsPath with curves that enclose the area that is filled when this path is drawn by the specified pen.

Applications use paths to draw outlines of shapes, fill the interiors of shapes, and create clipping regions. The graphics engine maintains the coordinates of geometric shapes in a path in world coordinate space.

A path may be composed of any number of figures (subpaths). Each figure is either composed of a sequence of connected lines and curves or a geometric shape primitive. The starting point of a figure is the first point in the sequence of connected lines and curves. The ending point is the last point in the sequence. The starting and ending points of a geometric shape primitive are defined by the primitive specification.

A figure that consists of a sequence of connected lines and curves (whose starting and ending points may be coincident) is an open figure, unless it is closed explicitly. A figure can be closed explicitly, by using the CloseFigure method, which closes the current figure by connecting a line from the ending point to the starting point. A figure that consists of a geometric shape primitive is a closed figure.

For purposes of filling and clipping (for example, if a path is rendered using FillPath), all open figures are closed by adding a line from the figure's first point to its last point.

A new figure is implicitly started when a path is created or when a figure is closed. A new figure is explicitly created when the StartFigure method is called.

When a geometric shape primitive is added to a path, it adds a figure containing the geometric shape, and also implicitly starts a new figure. Consequently, there is always a current figure in a path. When lines and curves are added to a path, an implicit line is added as needed to connect the ending point of the current figure to the starting point of the new lines and curves to form a sequence of connected lines and curves.

A figure has a direction that describes how line and curve segments are traced between the starting point and the ending point. The direction is defined in the order that lines and curves are added to a figure, or is defined by the geometric shape primitive. The direction is used in determining the path interiors for clipping and fill.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft