[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry

Geometry Class

ID2D1Geometry

Implements
Namespace: C1.Util.DX.Direct2D
Assembly: C1.Win.C1DX.4.8.dll
Syntax
[Guid("2cd906a1-12e2-11dc-9fed-001143a055f9")]
public class Geometry : Resource, IDisposable, IUnknown

Constructors

Name Description
Geometry(IntPtr)

Initializes a new instance of the Geometry class.

Fields

Name Description
DefaultFlatteningTolerance

Default flattening tolerance used for all methods that are not explicitly using it. Default is set to 0.25f.

Properties

Name Description
FlatteningTolerance

Get or set the default flattening tolerance used for all methods that are not explicitly using it. Default is set to 0.25f.

Methods

Name Description
Combine(Geometry, CombineMode, GeometrySink)

Combines this geometry with the specified geometry and stores the result in an SimplifiedGeometrySink.

Combine(Geometry, CombineMode, Matrix3x2?, float, GeometrySink)

Combines this geometry with the specified geometry and stores the result in an SimplifiedGeometrySink.

Combine(Geometry, CombineMode, float, GeometrySink)

Combines this geometry with the specified geometry and stores the result in an SimplifiedGeometrySink.

Compare(Geometry)

Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.

Compare(Geometry, Matrix3x2?, float)

HRESULT ID2D1Geometry::CompareWithGeometry([In] ID2D1Geometry* inputGeometry,[In, Optional] const D2D_MATRIX_3X2_F* inputGeometryTransform,[In] float flatteningTolerance,[Out] D2D1_GEOMETRY_RELATION* relation)

Compare(Geometry, float)

Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.

ComputeArea()

Computes the area of the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

ComputeArea(Matrix3x2?, float)

HRESULT ID2D1Geometry::ComputeArea([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] float* area)

ComputeArea(float)

Computes the area of the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

ComputeLength()

Calculates the length of the geometry as though each segment were unrolled into a line.

ComputeLength(Matrix3x2?, float)

HRESULT ID2D1Geometry::ComputeLength([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] float* length)

ComputeLength(float)

Calculates the length of the geometry as though each segment were unrolled into a line.

ComputePointAtLength(float, out Point2F)

Calculates the point and tangent vector at the specified distance along the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

ComputePointAtLength(float, Matrix3x2?, float, out Point2F)

HRESULT ID2D1Geometry::ComputePointAtLength([In] float length,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out, Optional] D2D_POINT_2F* point,[Out, Optional] D2D_POINT_2F* unitTangentVector)

ComputePointAtLength(float, float, out Point2F)

Calculates the point and tangent vector at the specified distance along the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

FillContainsPoint(Point2F)

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

FillContainsPoint(Point2F, Matrix3x2?, float)

HRESULT ID2D1Geometry::FillContainsPoint([In] D2D_POINT_2F point,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] BOOL* contains)

FillContainsPoint(Point2F, float)

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

FillContainsPoint(Point2L)

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

FillContainsPoint(Point2L, Matrix3x2, float)

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

FillContainsPoint(Point2L, float)

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

GetBounds()

Retrieves the bounds of the geometry.

GetBounds(Matrix3x2?)

HRESULT ID2D1Geometry::GetBounds([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[Out] D2D_RECT_F* bounds)

GetWidenedBounds(float)

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

GetWidenedBounds(float, StrokeStyle, Matrix3x2?, float)

HRESULT ID2D1Geometry::GetWidenedBounds([In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] D2D_RECT_F* bounds)

GetWidenedBounds(float, StrokeStyle, float)

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

GetWidenedBounds(float, float)

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

Outline(GeometrySink)

Computes the outline of the geometry and writes the result to an SimplifiedGeometrySink.

Outline(Matrix3x2?, float, GeometrySink)

Computes the outline of the geometry and writes the result to an SimplifiedGeometrySink.

Outline(float, GeometrySink)

Computes the outline of the geometry and writes the result to an SimplifiedGeometrySink.

Simplify(GeometrySimplificationOption, GeometrySink)

Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an SimplifiedGeometrySink.

Simplify(GeometrySimplificationOption, Matrix3x2?, float, GeometrySink)

Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an SimplifiedGeometrySink.

Simplify(GeometrySimplificationOption, float, GeometrySink)

Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an SimplifiedGeometrySink.

StrokeContainsPoint(Point2F, float)

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

StrokeContainsPoint(Point2F, float, StrokeStyle)

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

StrokeContainsPoint(Point2F, float, StrokeStyle, Matrix3x2)

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

StrokeContainsPoint(Point2F, float, StrokeStyle, Matrix3x2?, float)

HRESULT ID2D1Geometry::StrokeContainsPoint([In] D2D_POINT_2F point,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] BOOL* contains)

StrokeContainsPoint(Point2L, float)

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

StrokeContainsPoint(Point2L, float, StrokeStyle)

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

StrokeContainsPoint(Point2L, float, StrokeStyle, Matrix3x2)

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

StrokeContainsPoint(Point2L, float, StrokeStyle, Matrix3x2, float)

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

Tessellate(TessellationSink)

Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance

Tessellate(Matrix3x2?, float, TessellationSink)

Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance

Tessellate(float, TessellationSink)

Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance

Widen(float, GeometrySink)

Widens the geometry by the specified stroke and writes the result to an SimplifiedGeometrySink after it has been transformed by the specified matrix and flattened using the specified tolerance.

Widen(float, StrokeStyle, Matrix3x2?, float, GeometrySink)

Widens the geometry by the specified stroke and writes the result to an SimplifiedGeometrySink after it has been transformed by the specified matrix and flattened using the specified tolerance.

Widen(float, StrokeStyle, float, GeometrySink)

Widens the geometry by the specified stroke and writes the result to an SimplifiedGeometrySink after it has been transformed by the specified matrix and flattened using the specified tolerance.

Widen(float, float, GeometrySink)

Widens the geometry by the specified stroke and writes the result to an SimplifiedGeometrySink after it has been transformed by the specified matrix and flattened using the specified tolerance.

Operators

Name Description
explicit operator Geometry(IntPtr)

Performs an explicit conversion from IntPtr to Geometry.