Constructor and Description |
---|
QuantizedPalette(java.util.List<org.apache.commons.imaging.palette.ColorSpaceSubset> subsets,
int precision) |
Modifier and Type | Method and Description |
---|---|
int |
getEntry(int index)
Looks up the color for a given palette index.
|
int |
getPaletteIndex(int rgb)
Looks up the palette index for a given color.
|
int |
length()
The number of entries in the palette.
|
public QuantizedPalette(java.util.List<org.apache.commons.imaging.palette.ColorSpaceSubset> subsets, int precision)
public int getPaletteIndex(int rgb) throws ImageWriteException
Palette
getPaletteIndex
in interface Palette
rgb
- the color to look upImageWriteException
public int getEntry(int index)
Palette
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"