# Sandbox.Painter.Begin

## Overload 1

```csharp
static Painter Begin(Texture texture)
```

Starts painting a render-target texture. Dispose the painter to submit its drawing.
Existing pixels are preserved unless Clear is called.

### Parameters

- `texture` (`Texture`)

### Returns

`Painter`

## Overload 2

```csharp
static Painter Begin(CommandList commandList)
```

Records drawing into a command list using the screen bounds. Dispose the painter to append its drawing.

### Parameters

- `commandList` (`CommandList`)

### Returns

`Painter`

## Overload 3

```csharp
static Painter Begin(CommandList commandList, Rect bounds)
```

Records drawing into a command list. Bounds are in pixels and do not scale the drawing.
Starting another recording discards unfinished drawing. Dispose before recording other commands.

### Parameters

- `commandList` (`CommandList`)
- `bounds` (`Rect`)

### Returns

`Painter`

Declared in [Sandbox.Painter](/api/Sandbox.Painter).
Assembly: `Sandbox.Engine`.
