Module rgb::alt [] [src]

BGR/BGRA alernative layouts & grayscale

BGR might be seful 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
BGR16

16-bit BGR in machine's native endian

BGRA8
BGRA16

16-bit BGR in machine's native endian

GRAY8
GRAY16

16-bit gray in machine's native endian

GRAYA8
GRAYA16

16-bit gray in machine's native endian