PaletteWithSepA

Palette with separate alpha field, used primarily by PNG.

Constructors

this
this(T[] data, ubyte[] alphaField, uint format, ubyte bitDepth)

CTOR

Members

Functions

convTo
IPalette convTo(uint format)

Converts the palette to the given format if supported.

raw
ubyte[] raw()

Returns the raw data cast to ubyte

read
ARGB8888 read(size_t index)

Reads palette in standard format.

readF
RGBA_f32 readF(size_t index)

Reads palette in standard format.

Variables

alphaField
ubyte[] alphaField;
Undocumented in source.

Meta