logo

Module rgb::alt

source · []
Expand description

BGR/BGRA alernative layouts & grayscale

BGR might be useful for some Windows or OpenGL APIs.

Structs

RGB in reverse byte order

BGR+A

Grayscale. Use .0 or * (deref) to access the value.

Grayscale with alpha. Use .0/.1 to access.

Type Definitions

8-bit BGR

16-bit BGR in machine’s native endian

8-bit BGRA

16-bit BGR in machine’s native endian

8-bit gray

16-bit gray in machine’s native endian

8-bit gray with alpha in machine’s native endian

16-bit gray with alpha in machine’s native endian