|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Quantizer
The interface for an image quantizer. The addColor method is called (repeatedly if necessary) with all the image pixels. A color table can then be returned by calling the buildColorTable method.
Method Summary | |
---|---|
void |
addPixels(int[] pixels,
int offset,
int count)
Add pixels to the quantizer. |
int[] |
buildColorTable()
|
int |
getIndexForColor(int rgb)
|
void |
setup(int numColors)
Initialize the quantizer. |
Method Detail |
---|
void setup(int numColors)
numColors
- the number of colors we're quantizing to.void addPixels(int[] pixels, int offset, int count)
pixels
- the array of ARGB pixelsoffset
- the offset into the arraycount
- the count of pixelsint[] buildColorTable()
int getIndexForColor(int rgb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |