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
pointPoint2FloatThe point to test for containment.
strokeWidthfloatThe thickness of the stroke to apply.
strokeStyleIStrokeStyleThe style of stroke to apply. May be null.
worldTransformMatrix3x2Float?The transform to apply to the stroked geometry, or null for no transform.
flatteningTolerancefloat?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.