Package org.apache.commons.imaging.palette

# Class MedianCutQuantizer

java.lang.Object
org.apache.commons.imaging.palette.MedianCutQuantizer

public class MedianCutQuantizer extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MedianCutQuantizer(boolean ignoreAlpha)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<Integer,org.apache.commons.imaging.palette.ColorCount>`
  `groupColors(BufferedImage image, int maxColors)`
  `Palette`
  `process(BufferedImage image, int maxColors, MedianCut medianCut)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MedianCutQuantizer

    public MedianCutQuantizer(boolean ignoreAlpha)

- ## Method Details

  - ### groupColors

    public Map<Integer,org.apache.commons.imaging.palette.ColorCount> groupColors(BufferedImage image, int maxColors)

  - ### process

    public Palette process(BufferedImage image, int maxColors, MedianCut medianCut) throws ImagingException
    Throws:
      `ImagingException`