[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry.ComputeLength

ComputeLength Method

ComputeLength()

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

Declaration
public float ComputeLength()
Returns
Type Description
float

When this method returns, contains a reference to the length of the geometry. For closed geometries, the length includes an implicit closing segment. You must allocate storage for this parameter.

ComputeLength(float)

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

Declaration
public float ComputeLength(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 method returns, contains a reference to the length of the geometry. For closed geometries, the length includes an implicit closing segment. You must allocate storage for this parameter.

ComputeLength(Matrix3x2?, float)

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

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