# Sandbox.SandboxToolExtensions.RenderToPixmap

## Overload 1

```csharp
static bool RenderToPixmap(SceneCamera camera, Pixmap targetPixmap, bool async = False)
```

Render this camera to the target widget. Once you do this the target widget becomes "externally painted", so you
won't be able to paint on it anymore with Qt's Paint stuff.

### Parameters

- `camera` (`SceneCamera`)
- `targetPixmap` (`Pixmap`)
- `async` (`bool`), default `False`

### Returns

`bool`

## Overload 2

```csharp
static bool RenderToPixmap(CameraComponent camera, Pixmap targetPixmap, bool async = False)
```

Render this camera to the target widget. Once you do this the target widget becomes "externally painted", so you
won't be able to paint on it anymore with Qt's Paint stuff.

### Parameters

- `camera` (`CameraComponent`)
- `targetPixmap` (`Pixmap`)
- `async` (`bool`), default `False`

### Returns

`bool`

## Overload 3

```csharp
static bool RenderToPixmap(Scene scene, Pixmap targetPixmap, bool async = False)
```

Render this camera to the target widget. Once you do this the target widget becomes "externally painted", so you
won't be able to paint on it anymore with Qt's Paint stuff.

### Parameters

- `scene` (`Scene`)
- `targetPixmap` (`Pixmap`)
- `async` (`bool`), default `False`

### Returns

`bool`

Declared in [Sandbox.SandboxToolExtensions](/api/Sandbox.SandboxToolExtensions).
Assembly: `Sandbox.Tools`.
