[Top] [Prev] [Next] [Bottom]
GRgetlutid/mggltid
int32 GRgetlutid(int32 ri_id, int32 palette_index)
#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);
...
[Top] [Prev] [Next] [Bottom]
hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF
Development Group.