ICanvasRenderingContext2DIsPointInPath Method (Path2D, Double, Double, CanvasFillRule)
Reports whether or not the specified point is contained in the current path.

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.3
Syntax
bool IsPointInPath(
	Path2D path,
	double x,
	double y,
	CanvasFillRule fillRule
)

Parameters

path
Type: Aspose.Html.Dom.CanvasPath2D
A Path2D path to check.
x
Type: SystemDouble
The X coordinate of the point to check.
y
Type: SystemDouble
The Y coordinate of the point to check.
fillRule
Type: Aspose.Html.Dom.CanvasCanvasFillRule
The algorithm by which to determine if a point is inside a path or outside a path.

Return Value

Type: Boolean
Returns true if the point is inside the area contained by the filling of a path, otherwise false.
See Also