## Inflate(Rectangle, int, int)

Creates a [`Rectangle`](../) that is inflated by the specified amount.

```csharp
public static Rectangle Inflate(Rectangle rect, int x, int y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rect | Rectangle | A rectangle to inflate. |
| x | Int32 | The amount to inflate rectangle specified by *rect* horizontally. |
| y | Int32 | The amount to inflate rectangle specified by *rect* vertically. |

### Return Value

Returns a [`Rectangle`](../) that is inflated by the specified amount.

### See Also

* struct [Rectangle](../)
* namespace [Aspose.Drawing](../../rectangle/)
* assembly [Aspose.Drawing.Common](../../../)

---

## Inflate(int, int) {#inflate_1}

Enlarges this Rectangle by the specified amount.

```csharp
public void Inflate(int width, int height)
```

| Parameter | Type | Description |
| --- | --- | --- |
| width | Int32 | The amount to inflate this Rectangle horizontally. |
| height | Int32 | The amount to inflate this Rectangle vertically. |

### See Also

* struct [Rectangle](../)
* namespace [Aspose.Drawing](../../rectangle/)
* assembly [Aspose.Drawing.Common](../../../)

---

## Inflate(Size) {#inflate}

Enlarges this Rectangle by the specified amount.

```csharp
public void Inflate(Size size)
```

| Parameter | Type | Description |
| --- | --- | --- |
| size | Size | The size to inflate this Rectangle. |

### See Also

* struct [Size](../../size/)
* struct [Rectangle](../)
* namespace [Aspose.Drawing](../../rectangle/)
* assembly [Aspose.Drawing.Common](../../../)


