Class D2D1GeometrySink
Describes a geometric path that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves.
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public sealed class D2D1GeometrySink : D2D1SimplifiedGeometrySink, IDisposable, ID2D1Releasable
Properties
| Edit this page View SourceHandle
Gets an handle representing the D2D1 object interface.
Declaration
public override object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Overrides
Methods
| Edit this page View SourceAddArc(D2D1ArcSegment)
Adds a single arc to the path geometry.
Declaration
public void AddArc(D2D1ArcSegment arc)
Parameters
Type | Name | Description |
---|---|---|
D2D1ArcSegment | arc | The arc segment to add to the figure. |
AddBezier(D2D1BezierSegment)
Creates a cubic Bezier curve between the current point and the specified endpoint.
Declaration
public void AddBezier(D2D1BezierSegment bezier)
Parameters
Type | Name | Description |
---|---|---|
D2D1BezierSegment | bezier | A structure that describes the control points and endpoint of the Bezier curve to add. |
AddLine(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(D2D1Point2F point)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The end point of the line to draw. |
AddQuadraticBezier(D2D1QuadraticBezierSegment)
Creates a quadratic Bezier curve between the current point and the specified endpoint.
Declaration
public void AddQuadraticBezier(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. |