Table of Contents

Interface IGeometrySink

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Describes a geometric path that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves.
See ID2D1GeometrySink for more information.

public interface IGeometrySink : 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.

Methods

AddArc(in ArcSegment)

Adds a single arc to the path geometry.

AddBezier(in BezierSegment)

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

AddLine(Point2Float)

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

AddQuadraticBezier(QuadraticBezierSegment)

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

AddQuadraticBeziers(ReadOnlySpan<QuadraticBezierSegment>)

Adds a sequence of quadratic Bezier segments as an array in a single call.