Class D2D1Geometry
Represents a geometry resource and defines a set of helper methods for manipulating and measuring geometric shapes.
Inheritance
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public abstract class D2D1Geometry : D2D1Resource, IDisposable, ID2D1Releasable
Methods
| Edit this page View SourceCombineWithGeometry(D2D1Geometry, D2D1CombineMode, D2D1Matrix3X2F, D2D1SimplifiedGeometrySink)
Performs a combine operation between the two geometries to produce a resulting geometry.
Declaration
public void CombineWithGeometry(D2D1Geometry inputGeometry, D2D1CombineMode combineMode, D2D1Matrix3X2F inputGeometryTransform, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to combine with this instance. |
D2D1CombineMode | combineMode | The type of combine operation to perform. |
D2D1Matrix3X2F | inputGeometryTransform | The transform to apply to inputGeometry before combining. |
D2D1SimplifiedGeometrySink | geometrySink | The result of the combine operation. |
CombineWithGeometry(D2D1Geometry, D2D1CombineMode, D2D1Matrix3X2F, float, D2D1SimplifiedGeometrySink)
Performs a combine operation between the two geometries to produce a resulting geometry.
Declaration
public void CombineWithGeometry(D2D1Geometry inputGeometry, D2D1CombineMode combineMode, D2D1Matrix3X2F inputGeometryTransform, float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to combine with this instance. |
D2D1CombineMode | combineMode | The type of combine operation to perform. |
D2D1Matrix3X2F | inputGeometryTransform | The transform to apply to inputGeometry before combining. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The result of the combine operation. |
CombineWithGeometry(D2D1Geometry, D2D1CombineMode, D2D1SimplifiedGeometrySink)
Performs a combine operation between the two geometries to produce a resulting geometry.
Declaration
public void CombineWithGeometry(D2D1Geometry inputGeometry, D2D1CombineMode combineMode, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to combine with this instance. |
D2D1CombineMode | combineMode | The type of combine operation to perform. |
D2D1SimplifiedGeometrySink | geometrySink | The result of the combine operation. |
CombineWithGeometry(D2D1Geometry, D2D1CombineMode, float, D2D1SimplifiedGeometrySink)
Performs a combine operation between the two geometries to produce a resulting geometry.
Declaration
public void CombineWithGeometry(D2D1Geometry inputGeometry, D2D1CombineMode combineMode, float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to combine with this instance. |
D2D1CombineMode | combineMode | The type of combine operation to perform. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The result of the combine operation. |
CompareWithGeometry(D2D1Geometry)
Describes the intersection between this geometry and the specified geometry.
Declaration
public D2D1GeometryRelation CompareWithGeometry(D2D1Geometry inputGeometry)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to test. |
Returns
Type | Description |
---|---|
D2D1GeometryRelation | A value that describes how this geometry is related to inputGeometry. |
CompareWithGeometry(D2D1Geometry, D2D1Matrix3X2F)
Describes the intersection between this geometry and the specified geometry.
Declaration
public D2D1GeometryRelation CompareWithGeometry(D2D1Geometry inputGeometry, D2D1Matrix3X2F inputGeometryTransform)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to test. |
D2D1Matrix3X2F | inputGeometryTransform | The transform to apply to inputGeometry. |
Returns
Type | Description |
---|---|
D2D1GeometryRelation | A value that describes how this geometry is related to inputGeometry. |
CompareWithGeometry(D2D1Geometry, D2D1Matrix3X2F, float)
Describes the intersection between this geometry and the specified geometry.
Declaration
public D2D1GeometryRelation CompareWithGeometry(D2D1Geometry inputGeometry, D2D1Matrix3X2F inputGeometryTransform, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to test. |
D2D1Matrix3X2F | inputGeometryTransform | The transform to apply to inputGeometry. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
Returns
Type | Description |
---|---|
D2D1GeometryRelation | A value that describes how this geometry is related to inputGeometry. |
CompareWithGeometry(D2D1Geometry, float)
Describes the intersection between this geometry and the specified geometry.
Declaration
public D2D1GeometryRelation CompareWithGeometry(D2D1Geometry inputGeometry, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Geometry | inputGeometry | The geometry to test. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
Returns
Type | Description |
---|---|
D2D1GeometryRelation | A value that describes how this geometry is related to inputGeometry. |
ComputeArea()
Computes the area of the geometry.
Declaration
public float ComputeArea()
Returns
Type | Description |
---|---|
float | The area of the transformed, flattened version of this geometry. |
ComputeArea(D2D1Matrix3X2F)
Computes the area of the geometry.
Declaration
public float ComputeArea(D2D1Matrix3X2F worldTransform)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to this geometry before computing its area. |
Returns
Type | Description |
---|---|
float | The area of the transformed, flattened version of this geometry. |
ComputeArea(D2D1Matrix3X2F, float)
Computes the area of the geometry.
Declaration
public float ComputeArea(D2D1Matrix3X2F worldTransform, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to this geometry before computing its area. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
Returns
Type | Description |
---|---|
float | The area of the transformed, flattened version of this geometry. |
ComputeArea(float)
Computes the area of the geometry.
Declaration
public float ComputeArea(float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
Returns
Type | Description |
---|---|
float | The area of the transformed, flattened version of this geometry. |
ComputeLength()
Computes the length of the geometry.
Declaration
public float ComputeLength()
Returns
Type | Description |
---|---|
float | The length of the geometry. For closed geometries, the length includes an implicit closing segment. |
ComputeLength(D2D1Matrix3X2F)
Computes the length of the geometry.
Declaration
public float ComputeLength(D2D1Matrix3X2F worldTransform)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry before calculating its length. |
Returns
Type | Description |
---|---|
float | The length of the geometry. For closed geometries, the length includes an implicit closing segment. |
ComputeLength(D2D1Matrix3X2F, float)
Computes the length of the geometry.
Declaration
public float ComputeLength(D2D1Matrix3X2F worldTransform, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry before calculating its length. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
Returns
Type | Description |
---|---|
float | The length of the geometry. For closed geometries, the length includes an implicit closing segment. |
ComputeLength(float)
Computes the length of the geometry.
Declaration
public float ComputeLength(float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
Returns
Type | Description |
---|---|
float | The length of the geometry. For closed geometries, the length includes an implicit closing segment. |
ComputePointAtLength(float, D2D1Matrix3X2F, out D2D1Point2F, out D2D1Point2F)
Computes the point and tangent a given distance along the path.
Declaration
public void ComputePointAtLength(float length, D2D1Matrix3X2F worldTransform, out D2D1Point2F point, out D2D1Point2F unitTangentVector)
Parameters
Type | Name | Description |
---|---|---|
float | length | The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry before calculating the specified point and tangent. |
D2D1Point2F | point | The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values. |
D2D1Point2F | unitTangentVector | The tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter. |
ComputePointAtLength(float, D2D1Matrix3X2F, float, out D2D1Point2F, out D2D1Point2F)
Computes the point and tangent a given distance along the path.
Declaration
public void ComputePointAtLength(float length, D2D1Matrix3X2F worldTransform, float flatteningTolerance, out D2D1Point2F point, out D2D1Point2F unitTangentVector)
Parameters
Type | Name | Description |
---|---|---|
float | length | The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry before calculating the specified point and tangent. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1Point2F | point | The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values. |
D2D1Point2F | unitTangentVector | The tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter. |
ComputePointAtLength(float, out D2D1Point2F, out D2D1Point2F)
Computes the point and tangent a given distance along the path.
Declaration
public void ComputePointAtLength(float length, out D2D1Point2F point, out D2D1Point2F unitTangentVector)
Parameters
Type | Name | Description |
---|---|---|
float | length | The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry. |
D2D1Point2F | point | The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values. |
D2D1Point2F | unitTangentVector | The tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter. |
ComputePointAtLength(float, float, out D2D1Point2F, out D2D1Point2F)
Computes the point and tangent a given distance along the path.
Declaration
public void ComputePointAtLength(float length, float flatteningTolerance, out D2D1Point2F point, out D2D1Point2F unitTangentVector)
Parameters
Type | Name | Description |
---|---|---|
float | length | The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1Point2F | point | The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values. |
D2D1Point2F | unitTangentVector | The tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter. |
FillContainPoint(D2D1Point2F)
Indicates whether the area filled by the geometry would contain the specified point.
Declaration
public bool FillContainPoint(D2D1Point2F point)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test. |
Returns
Type | Description |
---|---|
bool | When this method returns, contains a boolean value that is |
FillContainPoint(D2D1Point2F, D2D1Matrix3X2F)
Indicates whether the area filled by the geometry would contain the specified point.
Declaration
public bool FillContainPoint(D2D1Point2F point, D2D1Matrix3X2F worldTransform)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry prior to testing for containment. |
Returns
Type | Description |
---|---|
bool | When this method returns, contains a boolean value that is |
FillContainPoint(D2D1Point2F, D2D1Matrix3X2F, float)
Indicates whether the area filled by the geometry would contain the specified point.
Declaration
public bool FillContainPoint(D2D1Point2F point, D2D1Matrix3X2F worldTransform, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry prior to testing for containment. |
float | flatteningTolerance | The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the fill by less than the tolerance are still considered inside. |
Returns
Type | Description |
---|---|
bool | When this method returns, contains a boolean value that is |
FillContainPoint(D2D1Point2F, float)
Indicates whether the area filled by the geometry would contain the specified point.
Declaration
public bool FillContainPoint(D2D1Point2F point, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test. |
float | flatteningTolerance | The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the fill by less than the tolerance are still considered inside. |
Returns
Type | Description |
---|---|
bool | When this method returns, contains a boolean value that is |
GetBounds()
Retrieves the bounds of the geometry.
Declaration
public D2D1RectF GetBounds()
Returns
Type | Description |
---|---|
D2D1RectF | The bounds of this geometry. |
GetBounds(D2D1Matrix3X2F)
Retrieves the bounds of the geometry.
Declaration
public D2D1RectF GetBounds(D2D1Matrix3X2F worldTransform)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to this geometry before calculating its bounds, or NULL. |
Returns
Type | Description |
---|---|
D2D1RectF | The bounds of this geometry. |
GetWidenedBounds(float, D2D1StrokeStyle)
Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.
Declaration
public D2D1RectF GetWidenedBounds(float strokeWidth, D2D1StrokeStyle strokeStyle)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry by stroking its outline. |
D2D1StrokeStyle | strokeStyle | The style of the stroke that widens the geometry. |
Returns
Type | Description |
---|---|
D2D1RectF | The bounds of the widened geometry. |
GetWidenedBounds(float, D2D1StrokeStyle, D2D1Matrix3X2F)
Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.
Declaration
public D2D1RectF GetWidenedBounds(float strokeWidth, D2D1StrokeStyle strokeStyle, D2D1Matrix3X2F worldTransform)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry by stroking its outline. |
D2D1StrokeStyle | strokeStyle | The style of the stroke that widens the geometry. |
D2D1Matrix3X2F | worldTransform | A transform to apply to the geometry after the geometry is transformed and after the geometry has been stroked. |
Returns
Type | Description |
---|---|
D2D1RectF | The bounds of the widened geometry. |
GetWidenedBounds(float, D2D1StrokeStyle, D2D1Matrix3X2F, 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.
Declaration
public D2D1RectF GetWidenedBounds(float strokeWidth, D2D1StrokeStyle strokeStyle, D2D1Matrix3X2F worldTransform, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry by stroking its outline. |
D2D1StrokeStyle | strokeStyle | The style of the stroke that widens the geometry. |
D2D1Matrix3X2F | worldTransform | A transform to apply to the geometry after the geometry is transformed and after the geometry has been stroked. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution. |
Returns
Type | Description |
---|---|
D2D1RectF | The bounds of the widened geometry. |
GetWidenedBounds(float, D2D1StrokeStyle, 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.
Declaration
public D2D1RectF GetWidenedBounds(float strokeWidth, D2D1StrokeStyle strokeStyle, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry by stroking its outline. |
D2D1StrokeStyle | strokeStyle | The style of the stroke that widens the geometry. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution. |
Returns
Type | Description |
---|---|
D2D1RectF | The bounds of the widened geometry. |
Outline(D2D1Matrix3X2F, D2D1SimplifiedGeometrySink)
Computes the outline of the geometry. The result is written back into a simplified geometry sink.
Declaration
public void Outline(D2D1Matrix3X2F worldTransform, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry outline. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the geometry's transformed outline is appended. |
Outline(D2D1Matrix3X2F, float, D2D1SimplifiedGeometrySink)
Computes the outline of the geometry. The result is written back into a simplified geometry sink.
Declaration
public void Outline(D2D1Matrix3X2F worldTransform, float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry outline. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the geometry's transformed outline is appended. |
Outline(D2D1SimplifiedGeometrySink)
Computes the outline of the geometry. The result is written back into a simplified geometry sink.
Declaration
public void Outline(D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the geometry's transformed outline is appended. |
Outline(float, D2D1SimplifiedGeometrySink)
Computes the outline of the geometry. The result is written back into a simplified geometry sink.
Declaration
public void Outline(float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the geometry's transformed outline is appended. |
Simplify(D2D1GeometrySimplificationOption, D2D1Matrix3X2F, D2D1SimplifiedGeometrySink)
Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an D2D1SimplifiedGeometrySink.
Declaration
public void Simplify(D2D1GeometrySimplificationOption simplificationOption, D2D1Matrix3X2F worldTransform, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1GeometrySimplificationOption | simplificationOption | A value that specifies whether the simplified geometry should contain curves. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the simplified geometry. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the simplified geometry is appended. |
Simplify(D2D1GeometrySimplificationOption, D2D1Matrix3X2F, float, D2D1SimplifiedGeometrySink)
Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an D2D1SimplifiedGeometrySink.
Declaration
public void Simplify(D2D1GeometrySimplificationOption simplificationOption, D2D1Matrix3X2F worldTransform, float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1GeometrySimplificationOption | simplificationOption | A value that specifies whether the simplified geometry should contain curves. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the simplified geometry. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the simplified geometry is appended. |
Simplify(D2D1GeometrySimplificationOption, D2D1SimplifiedGeometrySink)
Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an D2D1SimplifiedGeometrySink.
Declaration
public void Simplify(D2D1GeometrySimplificationOption simplificationOption, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1GeometrySimplificationOption | simplificationOption | A value that specifies whether the simplified geometry should contain curves. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the simplified geometry is appended. |
Simplify(D2D1GeometrySimplificationOption, float, D2D1SimplifiedGeometrySink)
Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an D2D1SimplifiedGeometrySink.
Declaration
public void Simplify(D2D1GeometrySimplificationOption simplificationOption, float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
D2D1GeometrySimplificationOption | simplificationOption | A value that specifies whether the simplified geometry should contain curves. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the simplified geometry is appended. |
StrokeContainsPoint(D2D1Point2F, float, D2D1StrokeStyle)
Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.
Declaration
public bool StrokeContainsPoint(D2D1Point2F point, float strokeWidth, D2D1StrokeStyle strokeStyle)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test for containment. |
float | strokeWidth | The thickness of the stroke to apply. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply. |
Returns
Type | Description |
---|---|
bool | A value set to |
StrokeContainsPoint(D2D1Point2F, float, D2D1StrokeStyle, D2D1Matrix3X2F)
Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.
Declaration
public bool StrokeContainsPoint(D2D1Point2F point, float strokeWidth, D2D1StrokeStyle strokeStyle, D2D1Matrix3X2F worldTransform)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test for containment. |
float | strokeWidth | The thickness of the stroke to apply. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the stroked geometry. |
Returns
Type | Description |
---|---|
bool | A value set to |
StrokeContainsPoint(D2D1Point2F, float, D2D1StrokeStyle, D2D1Matrix3X2F, float)
Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.
Declaration
public bool StrokeContainsPoint(D2D1Point2F point, float strokeWidth, D2D1StrokeStyle strokeStyle, D2D1Matrix3X2F worldTransform, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test for containment. |
float | strokeWidth | The thickness of the stroke to apply. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the stroked geometry. |
float | flatteningTolerance | The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the stroke by less than the tolerance are still considered inside. Smaller values produce more accurate results but cause slower execution. |
Returns
Type | Description |
---|---|
bool | A value set to |
StrokeContainsPoint(D2D1Point2F, float, D2D1StrokeStyle, float)
Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.
Declaration
public bool StrokeContainsPoint(D2D1Point2F point, float strokeWidth, D2D1StrokeStyle strokeStyle, float flatteningTolerance)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The point to test for containment. |
float | strokeWidth | The thickness of the stroke to apply. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply. |
float | flatteningTolerance | The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the stroke by less than the tolerance are still considered inside. Smaller values produce more accurate results but cause slower execution. |
Returns
Type | Description |
---|---|
bool | A value set to |
Tessellate(D2D1Matrix3X2F, D2D1TessellationSink)
Tessellates a geometry into triangles.
Declaration
public void Tessellate(D2D1Matrix3X2F worldTransform, D2D1TessellationSink tessellationSink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to this geometry. |
D2D1TessellationSink | tessellationSink | The D2D1TessellationSink to which the tessellated is appended. |
Tessellate(D2D1Matrix3X2F, float, D2D1TessellationSink)
Tessellates a geometry into triangles.
Declaration
public void Tessellate(D2D1Matrix3X2F worldTransform, float flatteningTolerance, D2D1TessellationSink tessellationSink)
Parameters
Type | Name | Description |
---|---|---|
D2D1Matrix3X2F | worldTransform | The transform to apply to this geometry. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1TessellationSink | tessellationSink | The D2D1TessellationSink to which the tessellated is appended. |
Tessellate(D2D1TessellationSink)
Tessellates a geometry into triangles.
Declaration
public void Tessellate(D2D1TessellationSink tessellationSink)
Parameters
Type | Name | Description |
---|---|---|
D2D1TessellationSink | tessellationSink | The D2D1TessellationSink to which the tessellated is appended. |
Tessellate(float, D2D1TessellationSink)
Tessellates a geometry into triangles.
Declaration
public void Tessellate(float flatteningTolerance, D2D1TessellationSink tessellationSink)
Parameters
Type | Name | Description |
---|---|---|
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1TessellationSink | tessellationSink | The D2D1TessellationSink to which the tessellated is appended. |
Widen(float, D2D1StrokeStyle, D2D1Matrix3X2F, D2D1SimplifiedGeometrySink)
Get the geometry and widen it as well as apply an optional pen style.
Declaration
public void Widen(float strokeWidth, D2D1StrokeStyle strokeStyle, D2D1Matrix3X2F worldTransform, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply to the geometry. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry after widening it. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the widened geometry is appended. |
Widen(float, D2D1StrokeStyle, D2D1Matrix3X2F, float, D2D1SimplifiedGeometrySink)
Get the geometry and widen it as well as apply an optional pen style.
Declaration
public void Widen(float strokeWidth, D2D1StrokeStyle strokeStyle, D2D1Matrix3X2F worldTransform, float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply to the geometry. |
D2D1Matrix3X2F | worldTransform | The transform to apply to the geometry after widening it. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the widened geometry is appended. |
Widen(float, D2D1StrokeStyle, D2D1SimplifiedGeometrySink)
Get the geometry and widen it as well as apply an optional pen style.
Declaration
public void Widen(float strokeWidth, D2D1StrokeStyle strokeStyle, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply to the geometry. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the widened geometry is appended. |
Widen(float, D2D1StrokeStyle, float, D2D1SimplifiedGeometrySink)
Get the geometry and widen it as well as apply an optional pen style.
Declaration
public void Widen(float strokeWidth, D2D1StrokeStyle strokeStyle, float flatteningTolerance, D2D1SimplifiedGeometrySink geometrySink)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The amount by which to widen the geometry. |
D2D1StrokeStyle | strokeStyle | The style of stroke to apply to the geometry. |
float | flatteningTolerance | The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. |
D2D1SimplifiedGeometrySink | geometrySink | The D2D1SimplifiedGeometrySink to which the widened geometry is appended. |