# Sandbox.Bitmap.Crop

```csharp
Bitmap Crop(Rect rect)
```

Crops the bitmap to the specified rectangle.

### Parameters

- `rect` (`Rect`): The rectangle to crop to.

### Returns

`Bitmap`: A new [Sandbox.Bitmap](/api/Sandbox.Bitmap) instance with the cropped image.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
