Class D2D1PathGeometry
Represents a complex shape that may be composed of arcs, curves, and lines.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1PathGeometry : D2D1Geometry, IDisposable
Constructors
| Edit this page View SourceD2D1PathGeometry(nint)
Initializes a new instance of the D2D1PathGeometry class.
Declaration
public D2D1PathGeometry(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1PathGeometryGuid
The interface GUID.
Declaration
public static readonly Guid D2D1PathGeometryGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceFigureCount
Gets the number of figures in the path geometry.
Declaration
public uint FigureCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
SegmentCount
Gets the number of segments in the path geometry.
Declaration
public uint SegmentCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
| Edit this page View SourceOpen()
Retrieves the geometry sink that is used to populate the path geometry with figures and segments.
Declaration
public D2D1GeometrySink Open()
Returns
| Type | Description |
|---|---|
| D2D1GeometrySink | The geometry sink that is used to populate the path geometry with figures and segments. |
Stream(D2D1GeometrySink?)
Copies the contents of the path geometry to the specified D2D1GeometrySink.
Declaration
public void Stream(D2D1GeometrySink? geometrySink)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1GeometrySink | geometrySink | The sink to which the path geometry's contents are copied. Modifying this sink does not change the contents of this path geometry. |