GraphicsPath Class

Represents a series of connected lines and curves.
Inheritance Hierarchy
SystemObject
  System.Drawing.Drawing2DGraphicsPath

Namespace:  System.Drawing.Drawing2D
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.5.0.0 (20.05.0)
Syntax
C#
public class GraphicsPath : IDisposable

The GraphicsPath type exposes the following members.

Constructors
  NameDescription
Public methodGraphicsPath
Initializes a new instance of the GraphicsPath class with a FillMode value of Alternate.
Public methodGraphicsPath(FillMode)
Initializes a new instance of the GraphicsPath class with the specified FillMode enumeration.
Public methodGraphicsPath(Point, Byte)
Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays.
Public methodGraphicsPath(PointF, Byte)
Initializes a new instance of the GraphicsPath class with the specified PathPointType and PointF arrays.
Public methodGraphicsPath(PointF, Byte, FillMode)
Initializes a new instance of the GraphicsPath class with the specified PathPointType and PointF arrays and with the specified FillMode enumeration element..
Properties
  NameDescription
Public propertyFillMode
Gets or sets a FillMode enumeration that determines how the interiors of shapes in this GraphicsPath are filled.
Public propertyPathData
Gets a PathData that encapsulates arrays of points (points) and types (types) for this GraphicsPath
Public propertyPathPoints
Gets the points in the path.
Public propertyPathTypes
Gets the types of the corresponding points in the [P:PathPoints] array.
Public propertyPointCount
Gets the number of elements in the [P:PathPoints] or the [P:PathTypes] array.
Methods
  NameDescription
Public methodAddArc(RectangleF, Single, Single)
Appends an elliptical arc to the current figure.
Public methodAddArc(Single, Single, Single, Single, Single, Single)
Appends an elliptical arc to the current figure.
Public methodAddBezier(PointF, PointF, PointF, PointF)
Adds a cubic Bézier curve to the current figure.
Public methodAddBezier(Single, Single, Single, Single, Single, Single, Single, Single)
Adds a cubic Bézier curve to the current figure.
Public methodAddBeziers(Point)
Adds a sequence of connected cubic Bézier curves to the current figure.
Public methodAddBeziers(PointF)
Adds a sequence of connected cubic Bézier curves to the current figure.
Public methodAddClosedCurve(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.
Public methodAddClosedCurve(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.
Public methodAddCurve(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.
Public methodAddCurve(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.
Public methodAddCurve(PointF, Single)
Adds a spline curve to the current figure.
Public methodAddCurve(PointF, Int32, Int32, Single)
Adds a spline curve to the current figure.
Public methodAddEllipse(RectangleF)
Adds an ellipse to the current path.
Public methodAddEllipse(Single, Single, Single, Single)
Adds an ellipse to the current path.
Public methodAddLine(PointF, PointF)
Appends a line segment to this GraphicsPath.
Public methodAddLine(Single, Single, Single, Single)
Appends a line segment to this GraphicsPath.
Public methodAddLines(Point)
Appends a series of connected line segments to the end of this GraphicsPath.
Public methodAddLines(PointF)
Appends a series of connected line segments to the end of this GraphicsPath.
Public methodAddPath
Appends the specified GraphicsPath to this path.
Public methodAddPie(Rectangle, Single, Single)
Adds the outline of a pie shape to this path.
Public methodAddPie(Single, Single, Single, Single, Single, Single)
Adds the outline of a pie shape to this path.
Public methodAddPolygon(Point)
Adds a polygon to this path.
Public methodAddPolygon(PointF)
Adds a polygon to this path.
Public methodAddRectangle(Rectangle)
Adds a rectangle to this path.
Public methodAddRectangle(RectangleF)
Adds a rectangle to this path.
Public methodAddRectangles(Rectangle)
Adds a series of rectangles to this path.
Public methodAddRectangles(RectangleF)
Adds a series of rectangles to this path.
Public methodAddString(String, FontFamily, Int32, Single, PointF, StringFormat)
Adds a text string to this path.
Public methodAddString(String, FontFamily, Int32, Single, RectangleF, StringFormat)
Adds a text string to this path.
Public methodClone
Make a copy of the current path object.
Public methodCloseAllFigures
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.
Public methodCloseFigure
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.
Public methodDispose
Releases all resources used by this GraphicsPath.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFlatten
Converts each curve in this path into a sequence of connected line segments.
Public methodGetBounds
Returns a rectangle that bounds this GraphicsPath.
Public methodGetBounds(Matrix)
Returns a rectangle that bounds this GraphicsPath when this path is transformed by the specified Matrix.
Public methodGetBounds(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.
Public methodGetHashCode (Inherited from Object.)
Public methodGetLastPoint
Gets the last point in the PathPoints array of this GraphicsPath.
Public methodGetType (Inherited from Object.)
Public methodIsOutlineVisible
Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen.
Public methodIsVisible
Indicates whether the specified point is contained within this GraphicsPath.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReset
Empties the PathPoints and PathTypes arrays and sets the FillMode to Alternate.
Public methodReverse
Reverses the order of points in the PathPoints array of this GraphicsPath.
Public methodSetMarkers
Sets a marker on this GraphicsPath.
Public methodStartFigure
Starts a new figure without closing the current figure. All subsequent points added to the path are added to this new figure.
Public methodToString (Inherited from Object.)
Public methodTransform
Applies a transform matrix to this GraphicsPath.
Public methodWarp(PointF, RectangleF)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
Public methodWarp(PointF, RectangleF, Matrix)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
Public methodWarp(PointF, RectangleF, Matrix, WarpMode)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
Public methodWarp(PointF, RectangleF, Matrix, WarpMode, Single)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
Public methodWiden(Pen)
Adds an additional outline to the path.
Public methodWiden(Pen, Matrix, Single)
Replaces this GraphicsPath with curves that enclose the area that is filled when this path is drawn by the specified pen.
See Also