Raster image identifier returned by GRcreate or GRselect
pal_index
IN:
Index of the palette
Purpose
Gets the identifier of a palette given its index.
Return value
Returns the palette identifier if successful and FAIL (or -1) otherwise.
Description
GRgetlutid gets the identifier of the palette attached to the raster image identified by the parameter ri_id. The palette is identified by its index, pal_index.
Currently, only one palette can be assigned to a raster image, which means that pal_index should always be set to 0.