[]
Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.
public GeometryRelation Compare(Geometry inputGeometry)
Type | Name | Description |
---|---|---|
Geometry | inputGeometry | The geometry to test. |
Type | Description |
---|---|
GeometryRelation | When this method returns, contains a reference to a value that describes how this geometry is related to inputGeometry. You must allocate storage for this parameter. |
When interpreting the returned relation value, it is important to remember that the member C1.Win.DX.Direct2D.GeometryRelation.IsContained of the D2D1_GEOMETRY_RELATION enumeration type means that this geometry is contained inside inputGeometry, not that this geometry contains inputGeometry. For more information about how to interpret other possible return values, see C1.Win.DX.Direct2D.GeometryRelation.
Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.
public GeometryRelation Compare(Geometry inputGeometry, float flatteningTolerance)
Type | Name | Description |
---|---|---|
Geometry | inputGeometry | The geometry to test. |
float | flatteningTolerance | The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution. |
Type | Description |
---|---|
GeometryRelation | When this method returns, contains a reference to a value that describes how this geometry is related to inputGeometry. You must allocate storage for this parameter. |
When interpreting the returned relation value, it is important to remember that the member C1.Win.DX.Direct2D.GeometryRelation.IsContained of the D2D1_GEOMETRY_RELATION enumeration type means that this geometry is contained inside inputGeometry, not that this geometry contains inputGeometry. For more information about how to interpret other possible return values, see C1.Win.DX.Direct2D.GeometryRelation.
HRESULT ID2D1Geometry::CompareWithGeometry([In] ID2D1Geometry* inputGeometry,[In, Optional] const D2D_MATRIX_3X2_F* inputGeometryTransform,[In] float flatteningTolerance,[Out] D2D1_GEOMETRY_RELATION* relation)
public GeometryRelation Compare(Geometry inputGeometry, Matrix3x2? inputGeometryTransform, float flatteningTolerance)
Type | Name | Description |
---|---|---|
Geometry | inputGeometry | |
Matrix3x2? | inputGeometryTransform | |
float | flatteningTolerance |
Type | Description |
---|---|
GeometryRelation |