Number of color lookup table entries in the palette
Purpose
Retrieves information about a palette.
Return value
Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.
Description
GRgetlutinfo retrieves the number of pixel components, data type, interlace mode, and number of color lookup table entries of the palette identified by the parameter pal_id. These values are stored in the parameters ncomp, data_type, interlace_mode, and num_entries, respectively. In C if the value of any of the output parameters are set to NULL, the corresponding information will not be retrieved.
FORTRAN
integer function mgglinf(pal_id, ncomp, data_type, interlace_mode, num_entries)