ReduceImage

function ReduceImage(image: TImage32; maxColors: Cardinal; useDithering: Boolean = true; reduceType: TReduceType = rtMedianCut): TArrayOfColor32;

Reduces the number of colors in an image to the specified number of colors.

Re dithering, see the Wikipedia article.

See Also

TReduceType