Uses of Interface
org.apache.commons.imaging.palette.Palette
Package
Description
Color quantization and palette manipulation tools.
-
Uses of Palette in org.apache.commons.imaging.palette
Modifier and TypeMethodDescriptionPaletteFactory.makeExactRgbPaletteFancy
(BufferedImage src) Builds an exact complete opaque palette containing all the colors insrc
, using an algorithm that is faster than PaletteFactory.makeExactRgbPaletteSimple(java.awt.image.BufferedImage, int) for large images but uses 2 mebibytes of working memory.PaletteFactory.makeQuantizedRgbaPalette
(BufferedImage src, boolean transparent, int max) Builds an inexact possibly translucent palette of at mostmax
colors insrc
using the traditional Median Cut algorithm.PaletteFactory.makeQuantizedRgbPalette
(BufferedImage src, int max) Builds an inexact opaque palette of at mostmax
colors insrc
using a variation of the Median Cut algorithm.MedianCutQuantizer.process
(BufferedImage image, int maxColors, MedianCut medianCut) Modifier and TypeMethodDescriptionstatic void
Dithering.applyFloydSteinbergDithering
(BufferedImage image, Palette palette) Changes the given image to only use colors from the given palette, applying Floyd-Steinberg dithering in the process.