[]
ID2D1SimplifiedGeometrySink
[Guid("2cd9069e-12e2-11dc-9fed-001143a055f9")]
[Shadow(typeof(SimplifiedGeometrySinkShadow))]
public interface ISimplifiedGeometrySink : ICallbackable, IDisposable
Creates a sequence of cubic Bezier curves and adds them to the geometry sink.
void AddBeziers(BezierSegment[] beziers)
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.
Creates a sequence of lines using the specified points and adds them to the geometry sink.
void AddLines(Point2F[] pointsRef)
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.
Starts a new figure at the specified point.
void BeginFigure(Point2F startPoint, FigureBegin figureBegin)
startPoint
Point2FThe point at which to begin the new figure.
figureBegin
FigureBeginWhether the new figure should be hollow or filled.
Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state.
void Close()
Ends the current figure; optionally, closes it.
void EndFigure(FigureEnd figureEnd)
figureEnd
FigureEndA 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}}.
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)
fillMode
FillModeThe method used to determine whether a given point is part of the geometry.
Specifies stroke and join options to be applied to new segments added to the geometry sink.
void SetSegmentFlags(PathSegment vertexFlags)
vertexFlags
PathSegmentStroke and join options to be applied to new segments added to the geometry sink.