## FillRectangle(Brush, float, float, float, float) {#fillrectangle_1}

Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.

```csharp
public void FillRectangle(Brush brush, float x, float y, float width, float height)
```

| Parameter | Type | Description |
| --- | --- | --- |
| brush | Brush | Brush that determines the characteristics of the fill. |
| x | Single | The x-coordinate of the upper-left corner of the rectangle to fill. |
| y | Single | The y-coordinate of the upper-left corner of the rectangle to fill. |
| width | Single | Width of the rectangle to fill. |
| height | Single | Height of the rectangle to fill. |

### See Also

* class [Brush](../../brush/)
* class [Graphics](../)
* namespace [Aspose.Drawing](../../graphics/)
* assembly [Aspose.Drawing.Common](../../../)

---

## FillRectangle(Brush, RectangleF) {#fillrectangle}

Fills the interior of a rectangle specified by a RectangleF structure.

```csharp
public void FillRectangle(Brush brush, RectangleF rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| brush | Brush | Brush that determines the characteristics of the fill. |
| rect | RectangleF | RectangleF structure that represents the rectangle to fill. |

### See Also

* class [Brush](../../brush/)
* struct [RectangleF](../../rectanglef/)
* class [Graphics](../)
* namespace [Aspose.Drawing](../../graphics/)
* assembly [Aspose.Drawing.Common](../../../)


