# Sandbox.VideoWriter.AddFrame

## Overload 1

```csharp
bool AddFrame(System.ReadOnlySpan<byte> data, System.Nullable<System.TimeSpan> timestamp = null)
```

### Parameters

- `data` (`System.ReadOnlySpan<byte>`)
- `timestamp` (`System.Nullable<System.TimeSpan>`), default `null`

### Returns

`bool`

## Overload 2

```csharp
bool AddFrame(Bitmap bitmap, System.Nullable<System.TimeSpan> timestamp = null)
```

### Parameters

- `bitmap` (`Bitmap`)
- `timestamp` (`System.Nullable<System.TimeSpan>`), default `null`

### Returns

`bool`

Declared in [Sandbox.VideoWriter](/api/Sandbox.VideoWriter).
Assembly: `Sandbox.Engine`.
