{{< psd/tize >}}
## FillRectangles(Brush, Rectangle[]) {#fillrectangles_1}

Fills the interiors of a series of rectangles specified by [`Rectangle`](../../rectangle/) structures.

```csharp
public void FillRectangles(Brush brush, Rectangle[] rects)
```

| Parameter | Type | Description |
| --- | --- | --- |
| brush | Brush | [`Brush`](../../brush/) that determines the characteristics of the fill. |
| rects | Rectangle[] | Array of [`Rectangle`](../../rectangle/) structures that represent the rectangles to fill. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | *brush* is null or *rects* is null. |

### See Also

* class [Brush](../../brush/)
* struct [Rectangle](../../rectangle/)
* class [Graphics](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## FillRectangles(Brush, RectangleF[]) {#fillrectangles}

Fills the interiors of a series of rectangles specified by [`RectangleF`](../../rectanglef/) structures.

```csharp
public void FillRectangles(Brush brush, RectangleF[] rects)
```

| Parameter | Type | Description |
| --- | --- | --- |
| brush | Brush | [`Brush`](../../brush/) that determines the characteristics of the fill. |
| rects | RectangleF[] | Array of [`Rectangle`](../../rectangle/) structures that represent the rectangles to fill. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | *brush* is null or *rects* is null. |

### See Also

* class [Brush](../../brush/)
* struct [RectangleF](../../rectanglef/)
* class [Graphics](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


