# Sandbox.Bitmap.Resize

```csharp
Bitmap Resize(int newWidth, int newHeight, bool smooth = True)
```

Resizes the bitmap to the specified dimensions and returns a new bitmap.

### Parameters

- `newWidth` (`int`): The new width of the bitmap.
- `newHeight` (`int`): The new height of the bitmap.
- `smooth` (`bool`), default `True`: Resample smoothly. If false this will be nearest neighbour.

### Returns

`Bitmap`: A new [Sandbox.Bitmap](/api/Sandbox.Bitmap) instance with the specified dimensions.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
