public interface Palette
| 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.
|
int getPaletteIndex(int rgb)
throws ImageWriteException
rgb - the color to look upImageWriteException - if it fails to read the palette indexint getEntry(int index)
index - the palette index to look upint length()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.