Previous Page | Next Page

Commands Used with the IMGCTRL, IMGOP and PICFILL Functions

STANDARD_CMAP



Selects a color map
Syntax
Details
Example

Syntax

rc=IMGOP(task-id, 'STANDARD_CMAP', color-map);

color-map

is the color map to designate as the current color map.

BEST

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.

COLORMIX_CGA

is the 16-color personal computer color map.

COLORMIX_192

is a 192-color blend.

DEFAULT

is an initial set of colors that is chosen by default. The available colors may vary between releases of the SAS System.

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.

Type: Character


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');

Previous Page | Next Page | Top of Page