BitmapPalette property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int BitmapPalette (int iIndex)

Delphi Syntax

BitmapPalette (iIndex:Integer):TColorRef

Overview

Refer to Managing Palettes

Remarks

Sets a color in the bitmap's palette.

The palette is an array of 256 elements. Each element is a long integer value containing the red, green and blue (RGB) components of the color. You can specify a color using the RGB function.

Palettes are used only for images that are 8 bits per pixel or less.

See Also

Topics:

Raster Images: Palettes