## Fill() {#fill}

Fills the subpaths with the current fill style and default algorithm CanvasFillRule.Nonzero.

```csharp
public void Fill()
```

### See Also

* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## Fill(*[CanvasFillRule](../../canvasfillrule/)*) {#fill_1}

Fills the subpaths with the current fill style.

```csharp
public void Fill(CanvasFillRule fillRule)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fillRule | CanvasFillRule | The algorithm by which to determine if a point is inside a path or outside a path. |

### See Also

* enum [CanvasFillRule](../../canvasfillrule/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## Fill(*[Path2D](../../path2d/)*) {#fill_2}

Fills the subpaths with the current fill style and default algorithm CanvasFillRule.Nonzero.

```csharp
public void Fill(Path2D path)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | Path2D | A Path2D path to fill. |

### See Also

* class [Path2D](../../path2d/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## Fill(*[Path2D](../../path2d/), [CanvasFillRule](../../canvasfillrule/)*) {#fill_3}

Fills the subpaths with the current fill style.

```csharp
public void Fill(Path2D path, CanvasFillRule fillRule)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | Path2D | A Path2D path to fill. |
| fillRule | CanvasFillRule | The algorithm by which to determine if a point is inside a path or outside a path. |

### See Also

* class [Path2D](../../path2d/)
* enum [CanvasFillRule](../../canvasfillrule/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
