# Sandbox.Texture.GetPixels

## Overload 1

```csharp
Color32[] GetPixels(int mip = 0)
```

Reads pixel colors from the texture at the specified mip level

### Parameters

- `mip` (`int`), default `0`

### Returns

`Color32[]`

## Overload 2

```csharp
void GetPixels(System.ValueTuple`4<int,int,int,int> srcRect, int slice, int mip, System.Span<T> dstData, ImageFormat dstFormat, System.ValueTuple<int,int> dstSize = null)
```

### Parameters

- `srcRect` (`System.ValueTuple`4<int,int,int,int>`)
- `slice` (`int`)
- `mip` (`int`)
- `dstData` (`System.Span<T>`)
- `dstFormat` (`ImageFormat`)
- `dstSize` (`System.ValueTuple<int,int>`), default `null`

## Overload 3

```csharp
void GetPixels(System.ValueTuple`4<int,int,int,int> srcRect, int slice, int mip, System.Span<T> dstData, ImageFormat dstFormat, System.ValueTuple`4<int,int,int,int> dstRect, int dstStride)
```

### Parameters

- `srcRect` (`System.ValueTuple`4<int,int,int,int>`)
- `slice` (`int`)
- `mip` (`int`)
- `dstData` (`System.Span<T>`)
- `dstFormat` (`ImageFormat`)
- `dstRect` (`System.ValueTuple`4<int,int,int,int>`)
- `dstStride` (`int`)

Declared in [Sandbox.Texture](/api/Sandbox.Texture).
Assembly: `Sandbox.Engine`.
