[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.ISimplifiedGeometrySink

Interface ISimplifiedGeometrySink

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1SimplifiedGeometrySink

[Guid("2cd9069e-12e2-11dc-9fed-001143a055f9")]
[Shadow(typeof(SimplifiedGeometrySinkShadow))]
public interface ISimplifiedGeometrySink : ICallbackable, IDisposable
Inherited Members
System.IDisposable.Dispose()

Methods

AddBeziers(BezierSegment[])

Creates a sequence of cubic Bezier curves and adds them to the geometry sink.

void AddBeziers(BezierSegment[] beziers)

Parameters

beziers BezierSegment[]

A pointer to an array of Bezier segments that describes the Bezier curves to create. A curve is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by {{BeginFigure}}) to the end point of the first Bezier segment in the array. if the array contains additional Bezier segments, each subsequent Bezier segment uses the end point of the preceding Bezier segment as its start point.

AddLines(Point2F[])

Creates a sequence of lines using the specified points and adds them to the geometry sink.

void AddLines(Point2F[] pointsRef)

Parameters

pointsRef Point2F[]

A pointer to an array of one or more points that describe the lines to draw. A line is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by {{BeginFigure}}) to the first point in the array. if the array contains additional points, a line is drawn from the first point to the second point in the array, from the second point to the third point, and so on.

BeginFigure(Point2F, FigureBegin)

Starts a new figure at the specified point.

void BeginFigure(Point2F startPoint, FigureBegin figureBegin)

Parameters

startPoint Point2F

The point at which to begin the new figure.

figureBegin FigureBegin

Whether the new figure should be hollow or filled.

Close()

Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state.

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}}.

SetFillMode(FillMode)

Specifies the method used to determine which points are inside the geometry described by this geometry sink 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.

SetSegmentFlags(PathSegment)

Specifies stroke and join options to be applied to new segments added to the geometry sink.

void SetSegmentFlags(PathSegment vertexFlags)

Parameters

vertexFlags PathSegment

Stroke and join options to be applied to new segments added to the geometry sink.