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.

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


Example

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