# PixelFormats

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/struct-pixelformats/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct PixelFormats
```

The well-known pixel formats.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L69)

## Members

- [`RGB565`](#assoc_const-rgb565)
- [`RGBA8888`](#assoc_const-rgba8888)
- [`RGBA64`](#assoc_const-rgba64)
- [`BGRA8888`](#assoc_const-bgra8888)
- [`BLACK_WHITE`](#assoc_const-black_white)
- [`GRAY2`](#assoc_const-gray2)
- [`GRAY4`](#assoc_const-gray4)
- [`GRAY8`](#assoc_const-gray8)
- [`GRAY16`](#assoc_const-gray16)
- [`GRAY32_FLOAT`](#assoc_const-gray32_float)
- [`RGB24`](#assoc_const-rgb24)
- [`RGB32`](#assoc_const-rgb32)
- [`BGR24`](#assoc_const-bgr24)
- [`BGR32`](#assoc_const-bgr32)
- [`BGR555`](#assoc_const-bgr555)
- [`BGR565`](#assoc_const-bgr565)

<a id="assoc_const-rgb565"></a>

### RGB565

```rust
const RGB565: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L72)

<a id="assoc_const-rgba8888"></a>

### RGBA8888

```rust
const RGBA8888: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L73)

<a id="assoc_const-rgba64"></a>

### RGBA64

```rust
const RGBA64: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L74)

<a id="assoc_const-bgra8888"></a>

### BGRA8888

```rust
const BGRA8888: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L75)

<a id="assoc_const-black_white"></a>

### BLACK_WHITE

```rust
const BLACK_WHITE: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L76)

<a id="assoc_const-gray2"></a>

### GRAY2

```rust
const GRAY2: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L77)

<a id="assoc_const-gray4"></a>

### GRAY4

```rust
const GRAY4: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L78)

<a id="assoc_const-gray8"></a>

### GRAY8

```rust
const GRAY8: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L79)

<a id="assoc_const-gray16"></a>

### GRAY16

```rust
const GRAY16: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L80)

<a id="assoc_const-gray32_float"></a>

### GRAY32_FLOAT

```rust
const GRAY32_FLOAT: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L81)

<a id="assoc_const-rgb24"></a>

### RGB24

```rust
const RGB24: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L82)

<a id="assoc_const-rgb32"></a>

### RGB32

```rust
const RGB32: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L83)

<a id="assoc_const-bgr24"></a>

### BGR24

```rust
const BGR24: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L84)

<a id="assoc_const-bgr32"></a>

### BGR32

```rust
const BGR32: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L85)

<a id="assoc_const-bgr555"></a>

### BGR555

```rust
const BGR555: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L86)

<a id="assoc_const-bgr565"></a>

### BGR565

```rust
const BGR565: PixelFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/pixel_format.rs#L87)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
