ID2D1SimplifiedGeometrySink interface
Describes a geometric path that does not contain quadratic bezier curves or arcs.
When to implement
Implement this interface when you want to read back the complete contents of a geometry. For other scenarios, use the implementation provided by Direct2D.
Members
The ID2D1SimplifiedGeometrySink interface inherits from the IUnknown interface. ID2D1SimplifiedGeometrySink also has these types of members:
Methods
The ID2D1SimplifiedGeometrySink interface has these methods.
| Method | Description |
|---|---|
| AddBeziers |
Creates a sequence of cubic Bezier curves and adds them to the geometry sink. |
| AddLines |
Creates a sequence of lines using the specified points and adds them to the geometry sink. |
| BeginFigure |
Starts a new figure at the specified point. |
| Close |
Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state. |
| EndFigure |
Ends the current figure; optionally, closes it. |
| SetFillMode |
Specifies the method used to determine which points are inside the geometry described by this geometry sink and which points are outside. |
| SetSegmentFlags |
Specifies stroke and join options to be applied to new segments added to the geometry sink. |
Remarks
A geometry sink consists of one or more figures. Each figure is made up of one or more line or Bezier curve segments. To create a figure, call the BeginFigure method and specify the figure's start point, then use AddLines and AddBeziers to add line and Bezier segments. When you are finished adding segments, call the EndFigure method. You can repeat this sequence to create additional figures. When you are finished creating figures, call the Close method.
To create geometry paths that can contain arcs and quadratic Bezier curves, use an ID2D1GeometrySink.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also