public class IndexImage extends Object
Constructor and Description |
---|
IndexImage() |
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
getIndexedImage(BufferedImage bi,
int nColors)
Converts the input image (must be TYPE_INT_RGB or
TYPE_INT_ARGB) to an indexed image.
|
public static BufferedImage getIndexedImage(BufferedImage bi, int nColors)
bi
- the image to be processed.nColors
- number of colors in the paletteCopyright © 2000–2023 Apache Software Foundation. All rights reserved.