|
|||||||||
| Home >> All >> org >> ydp >> [ jai overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ydp.jai
Class PNGEncodeParam.RGB

java.lang.Objectorg.ydp.jai.PNGEncodeParam
org.ydp.jai.PNGEncodeParam.RGB
- All Implemented Interfaces:
- java.lang.Cloneable, ImageDecodeParam, ImageEncodeParam, java.io.Serializable
- Enclosing class:
- PNGEncodeParam
- public static class PNGEncodeParam.RGB
- extends PNGEncodeParam
| Nested Class Summary |
| Nested classes inherited from class org.ydp.jai.PNGEncodeParam |
PNGEncodeParam.Gray, PNGEncodeParam.Palette, PNGEncodeParam.RGB |
| Field Summary | |
private int[] |
backgroundRGB
|
private boolean |
backgroundSet
|
private int[] |
transparency
|
| Fields inherited from class org.ydp.jai.PNGEncodeParam |
bitDepth, bitDepthSet, chunkData, chunkType, INTENT_ABSOLUTE, INTENT_PERCEPTUAL, INTENT_RELATIVE, INTENT_SATURATION, PNG_FILTER_AVERAGE, PNG_FILTER_NONE, PNG_FILTER_PAETH, PNG_FILTER_SUB, PNG_FILTER_UP, transparencySet |
| Constructor Summary | |
PNGEncodeParam.RGB()
Constructs an instance of PNGEncodeParam.RGB. |
|
| Method Summary | |
int[] |
getBackgroundRGB()
Returns the RGB value of the suggested background color. |
int[] |
getTransparentRGB()
Returns the RGB value to be used to denote transparency. |
boolean |
isBackgroundSet()
Returns true if a 'bKGD' chunk will be output. |
void |
setBackgroundRGB(int[] rgb)
Sets the RGB value of the suggested background color. |
void |
setBitDepth(int bitDepth)
Sets the desired bit depth for an RGB image. |
void |
setTransparentRGB(int[] transparentRGB)
Sets the RGB value to be used to denote transparency. |
void |
unsetBackground()
Suppresses the 'bKGD' chunk from being output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
backgroundSet
private boolean backgroundSet
backgroundRGB
private int[] backgroundRGB
transparency
private int[] transparency
| Constructor Detail |
PNGEncodeParam.RGB
public PNGEncodeParam.RGB()
- Constructs an instance of
PNGEncodeParam.RGB.
| Method Detail |
unsetBackground
public void unsetBackground()
- Suppresses the 'bKGD' chunk from being output.
- Overrides:
unsetBackgroundin classPNGEncodeParam
isBackgroundSet
public boolean isBackgroundSet()
- Returns true if a 'bKGD' chunk will be output.
- Overrides:
isBackgroundSetin classPNGEncodeParam
setBitDepth
public void setBitDepth(int bitDepth)
- Sets the desired bit depth for an RGB image. The bit
depth must be 8 or 16.
- Specified by:
setBitDepthin classPNGEncodeParam
setBackgroundRGB
public void setBackgroundRGB(int[] rgb)
- Sets the RGB value of the suggested background color.
The
rgbparameter should have 3 entries.The 'bKGD' chunk will encode this information.
getBackgroundRGB
public int[] getBackgroundRGB()
- Returns the RGB value of the suggested background color.
If the background color has not previously been set, or has been unset, an
IllegalStateExceptionwill be thrown.
setTransparentRGB
public void setTransparentRGB(int[] transparentRGB)
- Sets the RGB value to be used to denote transparency.
Setting this attribute will cause the alpha channel of the input image to be ignored.
The 'tRNS' chunk will encode this information.
getTransparentRGB
public int[] getTransparentRGB()
- Returns the RGB value to be used to denote transparency.
If the transparent color has not previously been set, or has been unset, an
IllegalStateExceptionwill be thrown.
|
|||||||||
| Home >> All >> org >> ydp >> [ jai overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC