ri_id
|
IN:
|
General raster image identifier returned by GRcreate or GRselect
|
palette_index
|
IN:
|
Index of the palette
|
#include "hdf.h" int32 pal_id, ri_id, gr_id, stat, image_index; char pal_data[PALETTE_SIZE][3]; int32 ncomp = 3; int32 data_type = DFNT_INT8; int32 interlace = MFGR_INTERLACE_PIXEL; ... image_index = GRnametoindex(gr_id, "Target image"); ri_id = GRselect(gr_id, image_index); pal_id = GRgetlutid(ri_id, 0); stat = GRwritelut(pal_id, ncomp, data_type, interlace, PALETTE_SIZE, pal_data); ...
FORTRAN
|
integer function mggltid(ri_id, palette_index)
|
|
|
|
integer ri_id, palette_index
|