Class D2D1GeometrySink
Describes a geometric path that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1GeometrySink : D2D1SimplifiedGeometrySink, IDisposable
Constructors
| Edit this page View SourceD2D1GeometrySink(nint)
Initializes a new instance of the D2D1GeometrySink class.
Declaration
public D2D1GeometrySink(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1GeometrySinkGuid
The interface GUID.
Declaration
public static readonly Guid D2D1GeometrySinkGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceAddArc(in D2D1ArcSegment)
Adds a single arc to the path geometry.
Declaration
public void AddArc(in D2D1ArcSegment arc)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1ArcSegment | arc | The arc segment to add to the figure. |
AddBezier(in D2D1BezierSegment)
Creates a cubic Bezier curve between the current point and the specified endpoint.
Declaration
public void AddBezier(in D2D1BezierSegment bezier)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1BezierSegment | bezier | A structure that describes the control points and endpoint of the Bezier curve to add. |
AddLine(in D2D1Point2F)
Creates a line segment between the current point and the specified end point and adds it to the geometry sink.
Declaration
public void AddLine(in D2D1Point2F point)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1Point2F | point | The end point of the line to draw. |
AddQuadraticBezier(in D2D1QuadraticBezierSegment)
Creates a quadratic Bezier curve between the current point and the specified endpoint.
Declaration
public void AddQuadraticBezier(in D2D1QuadraticBezierSegment bezier)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1QuadraticBezierSegment | bezier | A structure that describes the control point and the endpoint of the quadratic Bezier curve to add. |
AddQuadraticBeziers(D2D1QuadraticBezierSegment[]?)
Adds a sequence of quadratic Bezier segments as an array in a single call.
Declaration
public void AddQuadraticBeziers(D2D1QuadraticBezierSegment[]? beziers)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1QuadraticBezierSegment[] | beziers | An array of a sequence of quadratic Bezier segments. |
AddQuadraticBeziers(ReadOnlySpan<D2D1QuadraticBezierSegment>)
Adds a sequence of quadratic Bezier segments as an array in a single call.
Declaration
public void AddQuadraticBeziers(ReadOnlySpan<D2D1QuadraticBezierSegment> beziers)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<D2D1QuadraticBezierSegment> | beziers | An array of a sequence of quadratic Bezier segments. |