foregroundPixel

Specifies which entry in the color table is used for an object text and borders.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the foregroundPixel of object to colorNumber

# Examples

set the foregroundPixel of this stack to 0

# Description

Use the foregroundPixel property to change the foreground color of an object when the bit depth of the screen is 8 bits (256 colors) or less.

The foregroundPixel property specifies which entry in the color table is used for an object foreground color. It is similar to the foregroundColor property, but is specified as an entry in the current color table, rather than as a color reference.

The color table can be set by changing the colorMap property.

# Tags

ui,

# See

- **keyword:** integer - **glossary:** object, property, bit depth, bit, color reference, color table - **property:** borderPixel, foregroundColor