# Editor.Pixmap.Pixmap

## Overload 1

```csharp
Pixmap(int width, int height)
```

Create a new empty pixel map. It can then be drawn to via the [Editor.Paint](/api/Editor.Paint) class, like so:

```csharp
var myPixMap = new Pixmap( 16, 16 );
            
Paint.Target( myPixMap );
 Paint.Antialiasing = true;
 Paint.ClearPen();
 Paint.SetBrush( Color.Red );
 Paint.DrawRect( new Rect( 0, myPixMap.Size ), 2 );
Paint.Target( null );
```

### Parameters

- `width` (`int`)
- `height` (`int`)

## Overload 2

```csharp
Pixmap(Vector2 size)
```

### Parameters

- `size` (`Vector2`)

Declared in [Editor.Pixmap](/api/Editor.Pixmap).
Assembly: `Sandbox.Tools`.
