CreatePalette

function CreatePalette(image: TImage32; MaxColors: integer): TArrayOfColor32;

Creates the best palette for the given number of colors.

See Also

CreatePaletteEx