ICanvasRenderingContext2D.IsPointInStroke

IsPointInStroke(double, double)

Reports whether or not the specified point is inside the area contained by the stroking of a path.

public bool IsPointInStroke(double x, double y)
ParameterTypeDescription
xDoubleThe X coordinate of the point to check.
yDoubleThe Y coordinate of the point to check.

Return Value

Returns true if the point is inside the area contained by the stroking of a path, otherwise false.

See Also


IsPointInStroke(Path2D, double, double)

Reports whether or not the specified point is inside the area contained by the stroking of a path.

public bool IsPointInStroke(Path2D path, double x, double y)
ParameterTypeDescription
pathPath2DA Path2D path to check.
xDoubleThe X coordinate of the point to check.
yDoubleThe Y coordinate of the point to check.

Return Value

Returns true if the point is inside the area contained by the stroking of a path, otherwise false.

See Also