Chapter Contents

Previous

Next
Image Color Map: _getColor

Image Color Map: _getColor



Returns the specific red, green, and blue values assigned to an index in a color map


Syntax
Details
Example

Syntax

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

Argument Type Description
index
N specifies an integer that identifies the color-map index


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


Details

If the index is outside the range of color map colors, an error occurs. See _onError in this class for more information about handling error conditions.


Example

This example returns the colors for index 10:

call send(cmap_id,'_getColor',10,red,
          green,blue);


Chapter Contents

Previous

Next

Top of Page

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