Previous Page | Next Page

Commands Used with the IMGCTRL, IMGOP and PICFILL Functions

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.

Previous Page | Next Page | Top of Page