Uses of Interface
org.apache.commons.imaging.palette.Palette
Packages that use Palette
Package
Description
The PNG image format.
Color quantization and palette manipulation tools.
-
Uses of Palette in org.apache.commons.imaging.formats.png
Methods in org.apache.commons.imaging.formats.png with parameters of type PaletteModifier and TypeMethodDescriptionprivate void
PngWriter.writeChunkPLTE
(OutputStream os, Palette palette) private void
PngWriter.writeChunkTRNS
(OutputStream os, Palette palette) -
Uses of Palette in org.apache.commons.imaging.palette
Classes in org.apache.commons.imaging.palette that implement PaletteModifier and TypeClassDescription(package private) class
class
class
Methods in org.apache.commons.imaging.palette that return PaletteModifier 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) Methods in org.apache.commons.imaging.palette with parameters of type PaletteModifier 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.