Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID2D1Geometry::ComputeArea methods

Computes the area of the geometry.

Overload list

MethodDescription
ComputeArea(D2D1_MATRIX_3X2_F&,FLOAT*)

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

ComputeArea(D2D1_MATRIX_3X2_F*,FLOAT*)

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

ComputeArea(D2D1_MATRIX_3X2_F&,FLOAT,FLOAT*)

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

ComputeArea(D2D1_MATRIX_3X2_F*,FLOAT,FLOAT*)

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

Examples

The following code example uses ComputeArea to compute the area of a specified circle (m_pCircleGeometry1).


float area;

// Compute the area of circle1
hr = m_pCircleGeometry1->ComputeArea(
    D2D1::IdentityMatrix(),
    &area
    );


Requirements

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1Geometry

 

 

Show:
© 2017 Microsoft