Method BuildPalette
BuildPalette(List<Color>, int)
Reduce the number of colors
to maxColors
(or less)
using an appropriate selection algorithm.
List<Color> BuildPalette(List<Color> colors, int maxColors)
Parameters
colors
List<Color>Color of every pixel in the image. Contains duplication in order to support algorithms that weigh how common a color is.
maxColors
intThe maximum number of colours that should be represented.