Partager via


CD2DGeometry::FillContainsPoint

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

BOOL FillContainsPoint(
   CD2DPointF point,
   const D2D1_MATRIX_3X2_F& worldTransform,
   BOOL* contains,
   FLOAT flatteningTolerance = D2D1_DEFAULT_FLATTENING_TOLERANCE
) const;

Parameters

  • point
    The point to test.

  • worldTransform
    The transform to apply to the geometry prior to testing for containment.

  • contains
    When this method returns, contains a bool value that is TRUE if the area filled by the geometry contains point; otherwise, FALSE. You must allocate storage for this parameter.

  • flatteningTolerance
    The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the fill by less than the tolerance are still considered inside. 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