Click or drag to resize
CanvasGeometry.StrokeContainsPoint Method (Vector2, Single, CanvasStrokeStyle, Matrix3x2, Single)
Returns whether the stroked area of this geometry, with the specified stroke width and stroke style, would contain the specified point.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public bool StrokeContainsPoint(
	Vector2 point,
	float strokeWidth,
	CanvasStrokeStyle strokeStyle,
	Matrix3x2 transform,
	float flatteningTolerance
)

Parameters

point
Type: System.Numerics.Vector2
strokeWidth
Type: System.Single
strokeStyle
Type: Microsoft.Graphics.Canvas.Geometry.CanvasStrokeStyle
transform
Type: System.Numerics.Matrix3x2
flatteningTolerance
Type: System.Single

Return Value

Type: Boolean
Remarks
Uses the specified flattening tolerance and transform applied to the input geometry.
See Also