Share via


CD2DGeometry::StrokeContainsPoint

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

BOOL StrokeContainsPoint(
   CD2DPointF point,
   FLOAT strokeWidth,
   ID2D1StrokeStyle* strokeStyle,
   const D2D1_MATRIX_3X2_F& worldTransform,
   BOOL* contains,
   FLOAT flatteningTolerance = D2D1_DEFAULT_FLATTENING_TOLERANCE
) const;

Parameters

  • point
    The point to test for containment.

  • strokeWidth
    The thickness of the stroke to apply.

  • strokeStyle
    The style of the stroke to apply.

  • worldTransform
    The transform to apply to the stroked geometry.

  • contains
    When this method returns, contains a boolean value set to TRUE if the geometry's stroke contains the specified 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 stroke 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