# Sandbox.Texture.GetPixelsAsync

## Overload 1

```csharp
void GetPixelsAsync(System.Action<System.ReadOnlySpan<Color32>> callback, int mip = 0)
```

### Parameters

- `callback` (`System.Action<System.ReadOnlySpan<Color32>>`)
- `mip` (`int`), default `0`

## Overload 2

```csharp
void GetPixelsAsync(System.Action<System.ReadOnlySpan<T>> callback, ImageFormat dstFormat = -2, System.ValueTuple`4<int,int,int,int> srcRect = null, int slice = 0, int mip = 0)
```

### Parameters

- `callback` (`System.Action<System.ReadOnlySpan<T>>`)
- `dstFormat` (`ImageFormat`), default `-2`
- `srcRect` (`System.ValueTuple`4<int,int,int,int>`), default `null`
- `slice` (`int`), default `0`
- `mip` (`int`), default `0`

Declared in [Sandbox.Texture](/api/Sandbox.Texture).
Assembly: `Sandbox.Engine`.
