ImageEn, unit iexColorPalette

TIEColorPalette.MaxColors

TIEColorPalette.MaxColors

Declaration

property MaxColors: Integer;

Description

Specify the maxium number of color cells to display. If the specified color set has more than this number, it will be truncated.
If 0 is specified, the maximum will be 255. The maximum value is 65,536.

Note: The component is not designed to handle very large palettes, so setting MaxColors will ensure performance is not affected.

Default: 0

Example

// Show the first 65,536 colors of an image in a TImageEnView
IEColorPalette1.Selectable := False;
IEColorPalette1.MaxColors := 65536;
IEColorPalette1.AssignPalette( ImageEnView1 );