Class D2D1SimplifiedGeometrySink
Describes a geometric path that does not contain quadratic bezier curves or arcs.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1SimplifiedGeometrySink : DXComObject, IDisposable
Constructors
| Edit this page View SourceD2D1SimplifiedGeometrySink(nint)
Initializes a new instance of the D2D1SimplifiedGeometrySink class.
Declaration
public D2D1SimplifiedGeometrySink(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1SimplifiedGeometrySinkGuid
The interface GUID.
Declaration
public static readonly Guid D2D1SimplifiedGeometrySinkGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceAddBeziers(D2D1BezierSegment[]?)
Creates a sequence of cubic Bezier curves and adds them to the geometry sink.
Declaration
public void AddBeziers(D2D1BezierSegment[]? beziers)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1BezierSegment[] | beziers | 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(in D2D1Point2F, D2D1FigureBegin)) 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. |
AddBeziers(ReadOnlySpan<D2D1BezierSegment>)
Creates a sequence of cubic Bezier curves and adds them to the geometry sink.
Declaration
public void AddBeziers(ReadOnlySpan<D2D1BezierSegment> beziers)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<D2D1BezierSegment> | beziers | 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(in D2D1Point2F, D2D1FigureBegin)) 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. |
AddLines(D2D1Point2F[]?)
Creates a sequence of lines using the specified points and adds them to the geometry sink.
Declaration
public void AddLines(D2D1Point2F[]? points)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1Point2F[] | points | 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(in D2D1Point2F, D2D1FigureBegin)) 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. |
AddLines(ReadOnlySpan<D2D1Point2F>)
Creates a sequence of lines using the specified points and adds them to the geometry sink.
Declaration
public void AddLines(ReadOnlySpan<D2D1Point2F> points)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<D2D1Point2F> | points | 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(in D2D1Point2F, D2D1FigureBegin)) 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. |
BeginFigure(in D2D1Point2F, D2D1FigureBegin)
Starts a new figure at the specified point.
Declaration
public void BeginFigure(in D2D1Point2F startPoint, D2D1FigureBegin figureBegin)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1Point2F | startPoint | The point at which to begin the new figure. |
| D2D1FigureBegin | figureBegin | Whether the new figure should be hollow or filled. |
Close()
Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state.
Declaration
public void Close()
EndFigure(D2D1FigureEnd)
Ends the current figure; optionally, closes it.
Declaration
public void EndFigure(D2D1FigureEnd figureEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1FigureEnd | figureEnd | A 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(in D2D1Point2F, D2D1FigureBegin). |
SetFillMode(D2D1FillMode)
Specifies the method used to determine which points are inside the geometry described by this geometry sink and which points are outside.
Declaration
public void SetFillMode(D2D1FillMode fillMode)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1FillMode | fillMode | The method used to determine whether a given point is part of the geometry. |
SetSegmentOptions(D2D1PathSegmentOptions)
Specifies stroke and join options to be applied to new segments added to the geometry sink.
Declaration
public void SetSegmentOptions(D2D1PathSegmentOptions vertexOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1PathSegmentOptions | vertexOptions | Stroke and join options to be applied to new segments added to the geometry sink. |