ICanvasRenderingContext2D.IsPointInPath

IsPointInPath(double, double)

Reports whether or not the specified point is contained in the current path.

public bool IsPointInPath(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 filling of a path, otherwise false.

See Also


IsPointInPath(double, double, CanvasFillRule)

Reports whether or not the specified point is contained in the current path.

public bool IsPointInPath(double x, double y, CanvasFillRule fillRule)
ParameterTypeDescription
xDoubleThe X coordinate of the point to check.
yDoubleThe Y coordinate of the point to check.
fillRuleCanvasFillRuleThe algorithm by which to determine if a point is inside a path or outside a path.

Return Value

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

See Also


IsPointInPath(Path2D, double, double)

Reports whether or not the specified point is contained in the current path.

public bool IsPointInPath(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 filling of a path, otherwise false.

See Also


IsPointInPath(Path2D, double, double, CanvasFillRule)

Reports whether or not the specified point is contained in the current path.

public bool IsPointInPath(Path2D path, double x, double y, CanvasFillRule fillRule)
ParameterTypeDescription
pathPath2DA Path2D path to check.
xDoubleThe X coordinate of the point to check.
yDoubleThe Y coordinate of the point to check.
fillRuleCanvasFillRuleThe algorithm by which to determine if a point is inside a path or outside a path.

Return Value

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

See Also