1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-07 10:50:53 +00:00
plantuml/src/net/sourceforge/plantuml/quantization/ColorQuantizer.java
Arnaud Roques 48ae51e8c3 wip
2022-11-04 18:36:03 +01:00

20 lines
643 B
Java

package net.sourceforge.plantuml.quantization;
import java.util.Set;
public interface ColorQuantizer {
/**
* Quantize the given set of colors, returning a set no larger than
* {@code maxColors}.
*
* <p>
* The intent is to pick a set of colors which are representative of the
* original color set, but no specific guarantees are made.
*
* @param originalColors the colors in the original image
* @param maxColorCount the maximum number of colors to allow
* @return a quantized collection of colors no larger than {@code maxColors}
*/
public Set<QColor> quantize(Multiset<QColor> originalColors, int maxColorCount);
}