# Sandbox.Bitmap.ToWebP

```csharp
byte[] ToWebP(int quality = 100)
```

Exports the bitmap as an HDR WebP byte array with the specified quality.

### Parameters

- `quality` (`int`), default `100`: The quality of the WebP image, between 0 and 100.

### Returns

`byte[]`: A byte array containing the WebP HDR image data.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
