@Deprecated
public class Dither
extends java.lang.Object
Dither
provides the dithering capability for reducing colors
of an image to 2, 4, 8, 16, 32, 64, 128 or 256 colors. The real number of
colors at the end of color reduction depends on the color profile of the
image under reduction.
Currently the following two dithering algorithm's are supported :
Modifier and Type | Field and Description |
---|---|
static int |
DITHER_NONE
Deprecated.
as of Communiqu 3.1.0, use com.day.image.DitherOp instead,
this class will be removed in the next release.
|
static int |
DITHER_SIMPLE_ERROR_CORRECTION
Deprecated.
as of Communiqu 3.1.0, use com.day.image.DitherOp instead,
this class will be removed in the next release.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
dither(java.awt.image.BufferedImage image,
int nCol,
long transparency,
long bgcolor,
int algorithm)
Deprecated.
as of Communiqu 3.1.0, use com.day.image.DitherOp instead,
this class will be removed in the next release.
|
@Deprecated public static final int DITHER_NONE
@Deprecated public static final int DITHER_SIMPLE_ERROR_CORRECTION
@Deprecated public static java.awt.image.BufferedImage dither(java.awt.image.BufferedImage image, int nCol, long transparency, long bgcolor, int algorithm)
image
- The BufferedImage to analize for color reductionnCol
- The maximum number of colors allowed in the resulttransparency
- The transparency color of the image or -1 if there
is no specific transparency color.bgcolor
- The background color. This - if not -1 - is mixed into
the image before reducing colors.algorithm
- Indicate the dithering algorithm to use. Take one of
the above constantsDITHER_NONE
,
DITHER_SIMPLE_ERROR_CORRECTION
Copyright © 2010 - 2020 Adobe. All Rights Reserved