Image.makePalette

void makePalette(hid_t locId, string paletteName, const hsize_t[] paletteDims, const ubyte[] data)

Creates a palette.

Parameters

locIdLocation identifier (file or group handle)
paletteNameName of the palette dataset
paletteDimsDimensions of the palette (typically 256, 3 for RGB)
dataPalette data

Throws

HDF5Exception if palette creation fails