{{< psd/tize >}}
## GetBounds(Matrix) {#getbounds}

Gets the object's bounds.

```csharp
public override RectangleF GetBounds(Matrix matrix)
```

| Parameter | Type | Description |
| --- | --- | --- |
| matrix | Matrix | The matrix to apply before bounds will be calculated. |

### Return Value

The estimated object's bounds.

### See Also

* struct [RectangleF](../../rectanglef/)
* class [Matrix](../../matrix/)
* class [GraphicsPath](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## GetBounds(Matrix, Pen) {#getbounds_1}

Gets the object's bounds.

```csharp
public override RectangleF GetBounds(Matrix matrix, Pen pen)
```

| Parameter | Type | Description |
| --- | --- | --- |
| matrix | Matrix | The matrix to apply before bounds will be calculated. |
| pen | Pen | The pen to use for object. This can influence the object's bounds size. |

### Return Value

The estimated object's bounds.

### See Also

* struct [RectangleF](../../rectanglef/)
* class [Matrix](../../matrix/)
* class [Pen](../../pen/)
* class [GraphicsPath](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


