Table of Contents

Method StrokeContainsPoint

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

StrokeContainsPoint(Point2Float, float, IStrokeStyle?, in Matrix3x2Float?, float?)

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

bool StrokeContainsPoint(Point2Float point, float strokeWidth, IStrokeStyle? strokeStyle = null, in Matrix3x2Float? worldTransform = null, float? flatteningTolerance = null)

Parameters

point Point2Float

The point to test for containment.

strokeWidth float

The thickness of the stroke to apply.

strokeStyle IStrokeStyle

The style of stroke to apply. May be null.

worldTransform Matrix3x2Float?

The transform to apply to the stroked geometry, or null for no transform.

flatteningTolerance float?

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. If this value is null, FlatteningTolerance.Default will be used.

Returns

bool

true if the geometry's stroke contains the specified point; otherwise, false.