[][src]Module rgb::alt

BGR/BGRA alernative layouts & grayscale

BGR might be useful for some Windows or OpenGL APIs.

Structs

BGR

RGB in reverse byte order

BGRA

BGR+A

Gray

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

GrayAlpha

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

Type Definitions

BGR8

8-bit BGR

BGR16

16-bit BGR in machine's native endian

BGRA8

8-bit BGRA

BGRA16

16-bit BGR in machine's native endian

GRAY8

8-bit gray

GRAY16

16-bit gray in machine's native endian

GRAYA8

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

GRAYA16

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