public interface ColorQuantizer
Modifier and Type | Method and Description |
---|---|
java.util.Set<QColor> |
quantize(Multiset<QColor> originalColors,
int maxColorCount)
Quantize the given set of colors, returning a set no larger than
maxColors . |
java.util.Set<QColor> quantize(Multiset<QColor> originalColors, int maxColorCount)
maxColors
.
The intent is to pick a set of colors which are representative of the original color set, but no specific guarantees are made.
originalColors
- the colors in the original imagemaxColorCount
- the maximum number of colors to allowmaxColors