ID2D1Geometry::ComputeArea methods
Computes the area of the geometry.
Overload list
Method | Description |
---|---|
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
Requirement | Value |
---|---|
Library |
|
DLL |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for