Table of Contents

Method BuildPalette

Namespace
UICatalog.Scenarios
Assembly
UICatalog.dll

BuildPalette(List<Color>, int)

Reduce the number of colors to maxColors (or less) using an appropriate selection algorithm.

public 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 int

The maximum number of colours that should be represented.

Returns

List<Color>