|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.ext.awt.image.rendered.IndexImage
This implements an adaptive pallete generator to reduce images to 256 colors. This should probably be generalized to create a pallete with any number of colors in it (rather than always 256). This should be easy to do. Ideally this would also support a better dither option than just the JDK's pattern dither.
Constructor Summary | |
IndexImage()
|
Method Summary | |
static java.awt.image.BufferedImage |
getIndexedImage(java.awt.image.BufferedImage bi)
Converts the input image (must be TYPE_INT_RGB or TYPE_INT_ARGB) to an indexed image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndexImage()
Method Detail |
public static java.awt.image.BufferedImage getIndexedImage(java.awt.image.BufferedImage bi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |