Method ComputeArea
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
ComputeArea(in Matrix3x2Float?, float?)
Computes the area of the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.
float ComputeArea(in Matrix3x2Float? worldTransform = null, float? flatteningTolerance = null)
Parameters
worldTransform
Matrix3x2Float?The transform to apply to this geometry before computing its area, or null for no transform.
flatteningTolerance
float?The maximum error allowed when constructing a polygonal approximation of the geometry, or null to use FlatteningTolerance.Default. 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
- float
The area of the transformed, flattened version of this geometry.