PaintPalette property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

TPaletteType PaintPalette

Delphi Syntax

PaintPalette: TPaletteType

Overview

Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Specifies whether to force use of a fixed palette when painting images on a device that displays 256 colors or less.

Using the fixed palette improves the overall display of multiple images. You can specify either the LEAD fixed palette or the Netscape fixed palette. The Netscape fixed palette is the same palette used by Netscape Navigator and Microsoft Internet Explorer.

Setting

Description

ppAuto

Use the bitmap's own palette if available; otherwise use the LEAD fixed palette.

ppFixed

Always use the LEAD fixed palette.

ppAutoNetscape

Use the bitmap's own palette if available; otherwise use the Netscape fixed palette.

ppFixedNetscape

Always use the Netscape fixed palette.

See Also

Elements:

BackErase property, BitonalScaling property, PaintDither property, PaintEffect property, PaintROP3 property, PaintGamma property, PaintIntensity property, PaintContrast property

Topics:

Raster Images: Displaying Images