Previous Page | Next Page

Commands Used with the IMGCTRL, IMGOP and PICFILL Functions

SET_COLORS



Assigns the RGB values for the index positions of a color map for the current image
Syntax
Details
Example

Syntax

rc=IMGOP(task-id, 'SET_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

SET_COLORS acts on the currently selected image. It can be used with either a new image or an existing image. If index is outside the valid range for the color map, an error is returned. The color values must be between 0 and 255.


Example

See the example for CREATE_IMAGE.

Previous Page | Next Page | Top of Page