---
title: "slint::Gray8Pixel Struct"
description: "A grayscale pixel: a single luminance channel encoded as 8 bits."
---
```cpp
struct Gray8Pixel;
```

```cpp
#include <slint.h>
```

A grayscale pixel: a single luminance channel encoded as 8 bits.

## Public Attributes

### `luminance`

```cpp
uint8_t slint::Gray8Pixel::luminance
```

The luminance, between 0 (black) and 255 (white).