IPalette

Basic palette wrapper.

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 indexed format

readF
RGBA_f32 readF(size_t index)

Reads palette in standard floating point format

Properties

bitDepth
ubyte bitDepth [@property getter]

Returns the bitdepth of the palette.

length
size_t length [@property getter]

Returns the number of indexes within the palette.

paletteFormat
uint paletteFormat [@property getter]

Returns the color format of the palette.

Meta