共用方式為


CD2DGeometry::CompareWithGeometry

Describes the intersection between this geometry and the specified geometry. The comparison is performed using the specified flattening tolerance.

D2D1_GEOMETRY_RELATION CompareWithGeometry(
   CD2DGeometry& inputGeometry,
   const D2D1_MATRIX_3X2_F& inputGeometryTransform,
   FLOAT flatteningTolerance = D2D1_DEFAULT_FLATTENING_TOLERANCE
) const;

Parameters

  • inputGeometry
    The geometry to test.

  • inputGeometryTransform
    The transform to apply to inputGeometry.

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

Return Value

If the method succeeds, it returns TRUE. Otherwise, it returns FALSE.

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DGeometry Class