com.sixlegs.png
public interface SuggestedPalette
Modifier and Type | Method and Description |
---|---|
int |
getFrequency(int index)
Retrieve a sample frequency value.
|
String |
getName()
Returns palette name.
|
void |
getSample(int index,
short[] pixel)
Retrieve a sample value.
|
int |
getSampleCount()
Returns the number of samples.
|
int |
getSampleDepth()
Returns the sample depth.
|
String getName()
int getSampleCount()
int getSampleDepth()
void getSample(int index, short[] pixel)
getSampleDepth
. The color samples are not
premultiplied by alpha. An alpha value of 0 means fully transparent.index
- the sample indexpixel
- the array in which to store the sample componentsIndexOutOfBoundsException
- if index < 0, index >= getSampleCount
, or
pixel.length
is less than 4NullPointerException
- if pixel
is nullint getFrequency(int index)
index
- the sample index