# Sandbox.RectInt.Shrink

## Overload 1

```csharp
RectInt Shrink(in int left, in int top, in int right, in int bottom)
```

Returns a Rect shrunk in every direction by given values.

### Parameters

- `in left` (`int`)
- `in top` (`int`)
- `in right` (`int`)
- `in bottom` (`int`)

### Returns

`RectInt`

## Overload 2

```csharp
RectInt Shrink(in int x, in int y)
```

Returns a Rect shrunk in every direction by given values on each axis.

### Parameters

- `in x` (`int`)
- `in y` (`int`)

### Returns

`RectInt`

## Overload 3

```csharp
RectInt Shrink(in int amt)
```

Returns a Rect shrunk in every direction by given amount.

### Parameters

- `in amt` (`int`)

### Returns

`RectInt`

Declared in [Sandbox.RectInt](/api/Sandbox.RectInt).
Assembly: `Sandbox.System`.
