TIvoryMapper::TransparentColor

Specifies the color of transparency.

__property int TransparentColor;

Description

Use TransparentColor to specify the color of transparency. Transparent color is a dedicated color in your palette that is never used as a real color in your transparent bitmap. The transparent pixels are never copied when you are copying a tile onto a surface. You must set Transparent to true to enable transparency. The default value for TransparentColor is 0. Unlike TIvorySurface::TransparentColor, this property can be changed without restriction. The mapper automatically recreates the underlying surface component when it's necessary.

Notes

Note that TransparentColor is not a TColor. Instead, it's an integer. You should only use the lower 8 bits of that value to index a color in your palette.

Back to TIvoryMapper