[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint

StrokeContainsPoint Method

StrokeContainsPoint(Point2L, float)

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

Declaration
public bool StrokeContainsPoint(Point2L point, float strokeWidth)
Parameters
Type Name Description
Point2L point

The point to test for containment.

float strokeWidth

The thickness of the stroke to apply.

Returns
Type Description
bool

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.

StrokeContainsPoint(Point2F, float)

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

Declaration
public bool StrokeContainsPoint(Point2F point, float strokeWidth)
Parameters
Type Name Description
Point2F point

The point to test for containment.

float strokeWidth

The thickness of the stroke to apply.

Returns
Type Description
bool

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.

StrokeContainsPoint(Point2L, float, StrokeStyle)

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

Declaration
public bool StrokeContainsPoint(Point2L point, float strokeWidth, StrokeStyle strokeStyle)
Parameters
Type Name Description
Point2L point

The point to test for containment.

float strokeWidth

The thickness of the stroke to apply.

StrokeStyle strokeStyle

The style of stroke to apply.

Returns
Type Description
bool

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.

StrokeContainsPoint(Point2F, float, StrokeStyle)

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

Declaration
public bool StrokeContainsPoint(Point2F point, float strokeWidth, StrokeStyle strokeStyle)
Parameters
Type Name Description
Point2F point

The point to test for containment.

float strokeWidth

The thickness of the stroke to apply.

StrokeStyle strokeStyle

The style of stroke to apply.

Returns
Type Description
bool

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.

StrokeContainsPoint(Point2L, float, StrokeStyle, Matrix3x2)

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

Declaration
public bool StrokeContainsPoint(Point2L point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2 transform)
Parameters
Type Name Description
Point2L point

The point to test for containment.

float strokeWidth

The thickness of the stroke to apply.

StrokeStyle strokeStyle

The style of stroke to apply.

Matrix3x2 transform

The transform to apply to the stroked geometry.

Returns
Type Description
bool

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.

StrokeContainsPoint(Point2F, float, StrokeStyle, Matrix3x2)

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

Declaration
public bool StrokeContainsPoint(Point2F point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2 transform)
Parameters
Type Name Description
Point2F point

The point to test for containment.

float strokeWidth

The thickness of the stroke to apply.

StrokeStyle strokeStyle

The style of stroke to apply.

Matrix3x2 transform

The transform to apply to the stroked geometry.

Returns
Type Description
bool

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.

StrokeContainsPoint(Point2L, float, StrokeStyle, Matrix3x2, float)

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

Declaration
public bool StrokeContainsPoint(Point2L point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2 transform, float flatteningTolerance)
Parameters
Type Name Description
Point2L point

The point to test for containment.

float strokeWidth

The thickness of the stroke to apply.

StrokeStyle strokeStyle

The style of stroke to apply.

Matrix3x2 transform

The transform to apply to the stroked geometry.

float 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.

Returns
Type Description
bool

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.

StrokeContainsPoint(Point2F, float, StrokeStyle, Matrix3x2?, float)

HRESULT ID2D1Geometry::StrokeContainsPoint([In] D2D_POINT_2F point,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] BOOL* contains)

Declaration
public bool StrokeContainsPoint(Point2F point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2? worldTransform, float flatteningTolerance)
Parameters
Type Name Description
Point2F point
float strokeWidth
StrokeStyle strokeStyle
Matrix3x2? worldTransform
float flatteningTolerance
Returns
Type Description
bool