Interface ISimplifiedGeometrySink
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Describes a geometric path that does not contain quadratic bezier curves or arcs.
See ID2D1SimplifiedGeometrySink
for more information.
public interface ISimplifiedGeometrySink : IObjectRef, IIsDisposed, IDisposable
- Inherited Members
- Extension Methods
Remarks
An implementation of this interface is provided when using Open().
To implement this yourself, such as to capture the data provided from various methods on IGeometry,
create a class that derives from RefTrackedObject and that also derives from this interface.
For higher fidelity and better performance, implement the IGeometrySink interface, which
derives from this interface.
Methods
- AddBeziers(ReadOnlySpan<BezierSegment>)
Creates a sequence of cubic Bezier curves and adds them to the geometry sink.
- AddLines(ReadOnlySpan<Point2Float>)
Creates a sequence of lines using the specified points and adds them to the geometry sink.
- BeginFigure(Point2Float, FigureBegin)
Starts a new figure at the specified point.
- Close()
Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state.
- EndFigure(FigureEnd)
Ends the current figure; optionally, closes it.
- SetFillMode(FillMode)
Specifies the method used to determine which points are inside the geometry described by this geometry sink and which points are outside.
- SetSegmentOptions(PathSegmentOptions)
Specifies stroke and join options to be applied to new segments added to the geometry sink.