# Sandbox.CameraComponent.RenderToBitmap

## Overload 1

```csharp
void RenderToBitmap(Bitmap targetBitmap)
```

Render this camera to the target bitmap.

### Parameters

- `targetBitmap` (`Bitmap`)

## Overload 2

```csharp
void RenderToBitmap(Bitmap targetBitmap, bool renderUI)
```

Render this camera to the target bitmap, with the option to include or exclude the drawn UI.

### Parameters

- `targetBitmap` (`Bitmap`)
- `renderUI` (`bool`)

Declared in [Sandbox.CameraComponent](/api/Sandbox.CameraComponent).
Assembly: `Sandbox.Engine`.
