## Stroke() {#stroke}

Strokes the subpaths with the current stroke style.

```csharp
public void Stroke()
```

### See Also

* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## Stroke(*[Path2D](../../path2d/)*) {#stroke_1}

Strokes the subpaths with the current stroke style.

```csharp
public void Stroke(Path2D path)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | Path2D | A Path2D path to stroke. |

### See Also

* class [Path2D](../../path2d/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
