Image.makePalette
void makePalette(hid_t locId, string paletteName, const hsize_t[] paletteDims,
const ubyte[] data)Creates a palette.
Parameters
locId | Location identifier (file or group handle) |
paletteName | Name of the palette dataset |
paletteDims | Dimensions of the palette (typically 256, 3 for RGB) |
data | Palette data |
Throws
HDF5Exception if palette creation fails