Please enable JavaScript to view this site.

ESL Documentation

Definition

Map the colors of an image region.

imagemap IMAGE_MAP is OLD_COLOR NEW_COLOR [, OLD_COLOR NEW_COLOR] ...

IMAGE_MAP

A string value representing the identifier for the image map.

OLD_COLOR

A color keyword or number that specifies a color to map. The actual value can be an integer variable, integer constant, integer literal, or an ESL color keyword.

NEW_COLOR

A color keyword or number that specifies a new color for the OLD_COLOR specified. The actual value can be an integer variable, integer constant, integer literal, or an ESL color keyword.

Description

The image map tells ESL how to color an image. Different software produces different color schemes, so that a red object in the original image might be displayed as blue in ESL. ESL supports 16 colors, and because some software can support more, undesirable results may occur as different colors in the original are mapped to the same color in ESL.

Once the image map has been defined, you can specify it in an image region definition with the file option, or in a read action statement.

In ESL for Windows, if you specify IMAGE_MAP for an image region, the image map colors override the foreground and background colors specified for the region.

Example

imagemap Colormap1 is # You can use:

black red, # keywords

White Magenta, # constants

Red Yellow, # variables

4 1 # literals

See Also

color Keyword

image region Definition

read Action Statement