This function gets the identifier of the HDF GR palette attached to the raster image identified by the parameter ri_id.

Syntax


Result = HDF_GR_GETLUTID(ri_id, pal_index)

Return Value


Returns the palette identifier if successful or FAIL (-1) otherwise.

Arguments


ri_id

Raster image identifier returned by HDF_GR_CREATE or HDF_GR_SELECT.

pal_index

Index of the palette. Currently, only one palette can be assigned to a raster image, which means that pal_index should always be set to 0.

Keywords


None

Version History


5.2

Introduced