|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SuggestedPalette
A suggested palette. Suggested palettes can be useful when the display device is not capable of displaying the full range of colors present in the image.
PngImage.getProperty(java.lang.String),
PngConstants.SUGGESTED_PALETTES| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 components
IndexOutOfBoundsException - if index < 0, index >= getSampleCount, or
pixel.length is less than 4
NullPointerException - if pixel is nullint getFrequency(int index)
index - the sample index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||