ReduceColors

procedure ReduceColors(image: TImage32; MaxColors: integer; UseDithering: Boolean = true);

Reduces the number of colors used in an image (independent of the alpha channel values).