Chapter Contents

Previous

Next
Image Color Map: _setColor

Image Color Map: _setColor



Sets the specific red, green, and blue values for a color map index


Syntax
Details
Example

Syntax

CALL SEND (object-id, '_setColor', index, red, green, blue);

Argument Type Description
index N an integer identifying the color-map index.


0 [le] index < number of color-map entries
red N the red value for the index
green N the green value for the index
blue N the blue value for the index


Details

If the number of colors in the color map is less than the color map index, the color map size is extended automatically with color values of [0, 0, 0], though it is still limited to 256 colors. The red, green, and blue values range from 0 to 255, with 0 representing the darkest and 255 representing the lightest.


Example

This example sets the colors for index 10:

call send(cmap_id,'_setColor',10,0,128,255);


Chapter Contents

Previous

Next

Top of Page

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