Chapter Contents |
Previous |
Next |
GENERATE_CMAP |
Syntax | |
Details | |
Example |
Syntax |
rc=IMGOP(task-id, 'GENERATE_CMAP', COLORRAMP, reds, greens, blues); |
rc=IMGOP(task-id, 'GENERATE_CMAP', GRAYRAMP, n); |
Type: Numeric
Type: Numeric
Type: Numeric
Type: Numeric
Details |
GENERATE_CMAP generates two kinds of color maps:
After the color map is generated, it can be applied to an image with either the DITHER command or the MAP_COLORS command.
Example |
Use the GENERATE_CMAP command to generate a color ramp and a gray ramp, each containing 100 color map entries:
gray: rc=imgop(task-id,'GENERATE_CMAP','GRAYRAMP',100); return; color: rc=imgop(task-id,'GENERATE_CMAP','COLORRAMP',5,5,4); return;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.