Chapter Contents

Previous

Next
GET_COLORS

GET_COLORS



Returns the RGB values of the index positions of a color map for the selected image


Syntax
Details
Example

Syntax

rc=IMGOP(task-id, 'GET_COLORS', index, red, green, blue);

index
contains the identifier for the color map index.

Type: Numeric

red
is the red value for the index.

Type: Numeric

green
is the green value for the index.

Type: Numeric

blue
is the blue value for the index.

Type: Numeric


Details

The color values must be between 0 and 255. If index is outside the valid range for the color map, an error is returned.


Example

See the example for CREATE_IMAGE.


Chapter Contents

Previous

Next

Top of Page

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