[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry.ComputeArea

ComputeArea Method

ComputeArea()

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

Declaration
public float ComputeArea()
Returns
Type Description
float

When this this method returns, contains a reference to the area of the transformed, flattened version of this geometry. You must allocate storage for this parameter.

ComputeArea(float)

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

Declaration
public float ComputeArea(float flatteningTolerance)
Parameters
Type Name Description
float flatteningTolerance

The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution.

Returns
Type Description
float

When this this method returns, contains a reference to the area of the transformed, flattened version of this geometry. You must allocate storage for this parameter.

ComputeArea(Matrix3x2?, float)

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

Declaration
public float ComputeArea(Matrix3x2? worldTransform, float flatteningTolerance)
Parameters
Type Name Description
Matrix3x2? worldTransform
float flatteningTolerance
Returns
Type Description
float