Table of Contents

Class GraphicsPath

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

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

public class GraphicsPath : HandledObject<IGraphicsPathHandler>, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
Inheritance
GraphicsPath
Implements

Remarks

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.

Constructors

GraphicsPath(Graphics)

Initializes a new instance of the GraphicsPath class.

Properties

FillMode

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

Methods

AddArc(PointD, double, double, double)

Appends a circular arc to the current figure.

AddBezier(PointD, PointD, PointD, PointD)

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

AddBezierTo(PointD, PointD, PointD)

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

AddEllipse(RectD)

Adds an ellipse to the current path.

AddLine(PointD, PointD)

Appends a line segment to this GraphicsPath.

AddLineTo(PointD)

Appends a line segment to this GraphicsPath.

AddLines(PointD[])

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

AddRectangle(RectD)

Adds a rectangle to this path.

AddRoundedRectangle(RectD, double)

Adds a rounded rectangle to this path.

CloseFigure()

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.

CreateHandler()

Creates handler.

GetBounds()

Returns a rectangle that bounds this GraphicsPath.

StartFigure(PointD)

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