Commands Used with the IMGCTRL, IMGOP and PICFILL Functions |
Syntax | |
Details | |
Example |
Syntax |
rc=IMGOP(task-id, 'STANDARD_CMAP', color-map); |
is the color map to designate as the current color map.
is a special, dynamic color map that can contain up to 129 colors. The color map contains the 16 personal computer colors, a set of grays, and an even distribution of colors. The colors are dynamically selected, based on the capabilities of the display and on the number of available colors. The best set of colors is chosen accordingly.
is an initial set of colors that is chosen by default. The available colors may vary between releases of the SAS System.
is the color map for the currently installed device or system. The color map that STANDARD_CMAP obtains is a "snapshot" of the color map for the current device and does not change when the device's color map changes.
The System colormap does not exist for non-PseudoColor X Window System displays or for PCs with more than 256 colors.
Details |
STANDARD_CMAP specifies that the current color map should be filled with one of the "standard" image color maps. This new color map can be applied to any image by using either the DITHER command or the MAP_COLORS command.
Example |
Select a new color map and use the DITHER command to apply it to an image:
rc=imgop(task-id,'STANDARD_CMAP','COLORMIX_CGA'); rc=imgop(task-id,'READ',path); rc=imgop(task-id,'DITHER');
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.