public final class Dithering extends Object
Modifier and Type | Method and Description |
---|---|
static void |
applyFloydSteinbergDithering(BufferedImage image,
Palette palette)
Changes the given image to only use colors from the given palette,
applying Floyd-Steinberg dithering in the process.
|
public static void applyFloydSteinbergDithering(BufferedImage image, Palette palette) throws ImageWriteException
image
- the image to changepalette
- the palette to useImageWriteException
- if it fails to read the palette indexCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.