# Sandbox.Bitmap.ToBmp

```csharp
byte[] ToBmp()
```

Exports the bitmap as a BMP byte array.

### Returns

`byte[]`: A byte array containing the BMP image data.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
