---
title: "is_point_in_stroke method"
url: "https://reference.aspose.com/html/python-net/aspose.html.dom.canvas/icanvasrenderingcontext2d/is_point_in_stroke/"
product: "Aspose.HTML for Python via .NET API References"
---


## is_point_in_stroke {#float-float}

Reports whether or not the specified point is inside the area contained by the stroking of a path.


### Returns 


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


```python
def is_point_in_stroke(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_stroke {#aspose.html.dom.canvas.Path2D-float-float}

Reports whether or not the specified point is inside the area contained by the stroking of a path.


### Returns 


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


```python
def is_point_in_stroke(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. |



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