[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.IPath

Interface IPath

Namespace
GrapeCity.Documents.Drawing
Assembly
GcDocs.Imaging.dll

Represents a complex shape that may be composed of arcs, curves, and lines.

public interface IPath : IDisposable
Inherited Members
System.IDisposable.Dispose()
Extension Methods

Properties

FigureHasSegments

Gets a value indicating if the active figure contains one or more segments.

bool FigureHasSegments { get; }

Property Value

bool

FigureStarted

Gets a value indicating if there is an active figure to update.

bool FigureStarted { get; }

Property Value

bool

IsClosed

Gets a value indicating if the path is closed for subsequent modifications.

bool IsClosed { get; }

Property Value

bool

Methods

AddArc(ArcSegment)

Adds a single arc to the path geometry.

void AddArc(ArcSegment arcSegment)

Parameters

arcSegment ArcSegment

The arc segment to add to the figure.

AddBezier(PointF, PointF, PointF)

Creates a cubic Bezier curve between the current point and the specified end point.

void AddBezier(PointF p1, PointF p2, PointF endPoint)

Parameters

p1 System.Drawing.PointF

The first control point for the Bezier segment.

p2 System.Drawing.PointF

The second control point for the Bezier segment.

endPoint System.Drawing.PointF

The end point for the Bezier segment.

AddLine(PointF)

Creates a line segment between the current point and the specified end point and adds it to the geometry sink.

void AddLine(PointF pointTo)

Parameters

pointTo System.Drawing.PointF

The end point of the line to draw.

AddQuadraticBezier(PointF, PointF)

Creates a quadratic Bezier curve between the current point and the specified end point.

void AddQuadraticBezier(PointF p1, PointF endPoint)

Parameters

p1 System.Drawing.PointF

The control point of the quadratic Bezier segment.

endPoint System.Drawing.PointF

The end point of the quadratic Bezier segment.

BeginFigure(PointF)

Starts a new figure at the specified point.

void BeginFigure(PointF point)

Parameters

point System.Drawing.PointF

The point at which to begin the new figure.

CancelFigure()

Discards the active figure.

void CancelFigure()

Close()

Closes the path for modifications. The path cannot be modified after it is closed.

void Close()

EndFigure(FigureEnd)

Ends the current figure; optionally, closes it.

void EndFigure(FigureEnd figureEnd)

Parameters

figureEnd FigureEnd

A value that indicates whether the current figure is closed. If the figure is closed, a line is drawn between the current point and the start point specified by BeginFigure(PointF).

GetBounds()

Returns a rectangle that bounds this IPath.

RectangleF GetBounds()

Returns

System.Drawing.RectangleF

A System.Drawing.RectangleF that represents a rectangle that bounds this IPath.

GetBounds(Matrix3x2)

Returns a rectangle that bounds this IPath when this path is transformed by the specified System.Numerics.Matrix3x2.

RectangleF GetBounds(Matrix3x2 worldTransform)

Parameters

worldTransform System.Numerics.Matrix3x2

The transform to apply to this path before calculating its bounds.

Returns

System.Drawing.RectangleF

A System.Drawing.RectangleF that represents a rectangle that bounds this IPath.

SetFillMode(FillMode)

Specifies the method used to determine which points are inside the geometry described by this IPath and which points are outside.

void SetFillMode(FillMode fillMode)

Parameters

fillMode FillMode

The method used to determine whether a given point is part of the geometry.