# Editor.Pixmap.Resize

## Overload 1

```csharp
Pixmap Resize(Vector2 size)
```

Returns a new pixel map that contains resized version of this image with given dimensions.
Will try to preserve aspect ratio.

### Parameters

- `size` (`Vector2`)

### Returns

`Pixmap`

## Overload 2

```csharp
Pixmap Resize(int x, int y)
```

### Parameters

- `x` (`int`)
- `y` (`int`)

### Returns

`Pixmap`

Declared in [Editor.Pixmap](/api/Editor.Pixmap).
Assembly: `Sandbox.Tools`.
