Class LongestAxisMedianCut
- java.lang.Object
-
- org.apache.commons.imaging.palette.LongestAxisMedianCut
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Comparator<ColorGroup>
COMPARATOR
-
Constructor Summary
Constructors Constructor Description LongestAxisMedianCut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
doCut(ColorGroup colorGroup, ColorComponent mode, java.util.List<ColorGroup> colorGroups, boolean ignoreAlpha)
boolean
performNextMedianCut(java.util.List<ColorGroup> colorGroups, boolean ignoreAlpha)
-
-
-
Field Detail
-
COMPARATOR
private static final java.util.Comparator<ColorGroup> COMPARATOR
-
-
Method Detail
-
performNextMedianCut
public boolean performNextMedianCut(java.util.List<ColorGroup> colorGroups, boolean ignoreAlpha) throws ImageWriteException
- Specified by:
performNextMedianCut
in interfaceMedianCut
- Throws:
ImageWriteException
-
doCut
private void doCut(ColorGroup colorGroup, ColorComponent mode, java.util.List<ColorGroup> colorGroups, boolean ignoreAlpha) throws ImageWriteException
- Throws:
ImageWriteException
-
-