Chapter Contents

Previous

Next
STANDARD_CMAP

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.

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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.