|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.image.Dither
public class Dither
The 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 :
| Field Summary | |
|---|---|
static int |
DITHER_NONE
Deprecated. as of Communique 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 Communique 3.1.0, use com.day.image.DitherOp instead, this class will be removed in the next release. |
| Method Summary | |
|---|---|
static BufferedImage |
dither(BufferedImage image,
int nCol,
long transparency,
long bgcolor,
int algorithm)
Deprecated. as of Communique 3.1.0, use com.day.image.DitherOp instead, this class will be removed in the next release. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DITHER_NONE
public static final int DITHER_SIMPLE_ERROR_CORRECTION
| Method Detail |
|---|
public static BufferedImage dither(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 constants
DITHER_NONE,
DITHER_SIMPLE_ERROR_CORRECTION
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||