# Editor.Pixmap.GetJpeg

```csharp
byte[] GetJpeg(int quality)
```

Returns the raw bytes of a JPEG file that contains this pixel maps image.
Internally writes and deletes a file, so be careful using it often.

### Parameters

- `quality` (`int`): JPEG quality, 0 to 100.

### Returns

`byte[]`

Declared in [Editor.Pixmap](/api/Editor.Pixmap).
Assembly: `Sandbox.Tools`.
