# Sandbox.Bitmap.GetPixels

```csharp
Color[] GetPixels()
```

Retrieves the pixel data of the bitmap as an array of colors.

### Returns

`Color[]`

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
