
## stroke {#}

Strokes the subpaths with the current stroke style.



```python
def stroke(self):
    ...
```




## stroke {#aspose.html.dom.canvas.Path2D}

Strokes the subpaths with the current stroke style.



```python
def stroke(self, path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | [`Path2D`](/html/python-net/aspose.html.dom.canvas/path2d) | A Path2D path to stroke. |



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