Class D2D1SimplifiedGeometrySink
Describes a geometric path that does not contain quadratic bezier curves or arcs.
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public abstract class D2D1SimplifiedGeometrySink : IDisposable, ID2D1Releasable
Properties
| Edit this page View SourceHandle
Gets an handle representing the D2D1 object interface.
Declaration
public abstract object Handle { get; }
Property Value
Type | Description |
---|---|
object |
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(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(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(D2D1Point2F, D2D1FigureBegin)
Starts a new figure at the specified point.
Declaration
public void BeginFigure(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()
Dispose()
Immediately releases the unmanaged resources used by the D2D1SimplifiedGeometrySink object.
Declaration
public void Dispose()
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(D2D1Point2F, D2D1FigureBegin). |
Release()
Releases the managed reference to the COM D2D1 interface.
Declaration
public void Release()
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. |
ToBoolean()
Gets a boolean indicating if the handle is not null.
Declaration
public bool ToBoolean()
Returns
Type | Description |
---|---|
bool | A boolean |
Operators
| Edit this page View Sourceimplicit operator bool(D2D1SimplifiedGeometrySink)
Gets a boolean indicating if the handle is not null.
Declaration
public static implicit operator bool(D2D1SimplifiedGeometrySink value)
Parameters
Type | Name | Description |
---|---|---|
D2D1SimplifiedGeometrySink | value | A D2D1 object. |
Returns
Type | Description |
---|---|
bool | A boolean |