
## is_point_in_path {#float-float}

Reports whether or not the specified point is contained in the current path.


### Returns 


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


```python
def is_point_in_path(self, x, y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | float | The X coordinate of the point to check. |
| y | float | The Y coordinate of the point to check. |


## is_point_in_path {#float-float-aspose.html.dom.canvas.CanvasFillRule}

Reports whether or not the specified point is contained in the current path.


### Returns 


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


```python
def is_point_in_path(self, x, y, fill_rule):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | float | The X coordinate of the point to check. |
| y | float | The Y coordinate of the point to check. |
| fill_rule | [`CanvasFillRule`](/html/python-net/aspose.html.dom.canvas/canvasfillrule) | The algorithm by which to determine if a point is inside a path or outside a path. |


## is_point_in_path {#aspose.html.dom.canvas.Path2D-float-float}

Reports whether or not the specified point is contained in the current path.


### Returns 


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


```python
def is_point_in_path(self, path, x, y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | [`Path2D`](/html/python-net/aspose.html.dom.canvas/path2d) | A Path2D path to check. |
| x | float | The X coordinate of the point to check. |
| y | float | The Y coordinate of the point to check. |


## is_point_in_path {#aspose.html.dom.canvas.Path2D-float-float-aspose.html.dom.canvas.CanvasFillRule}

Reports whether or not the specified point is contained in the current path.


### Returns 


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


```python
def is_point_in_path(self, path, x, y, fill_rule):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | [`Path2D`](/html/python-net/aspose.html.dom.canvas/path2d) | A Path2D path to check. |
| x | float | The X coordinate of the point to check. |
| y | float | The Y coordinate of the point to check. |
| fill_rule | [`CanvasFillRule`](/html/python-net/aspose.html.dom.canvas/canvasfillrule) | The algorithm by which to determine if a point is inside a path or outside a path. |



### See Also
* module [`aspose.html.dom.canvas`](../../)
* class [`ICanvasRenderingContext2D`](/html/python-net/aspose.html.dom.canvas/icanvasrenderingcontext2d)
