|
mxGraph 2.1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.png.mxPngEncodeParam com.mxgraph.util.png.mxPngEncodeParam.RGB
public static class mxPngEncodeParam.RGB
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.mxgraph.util.png.mxPngEncodeParam |
---|
mxPngEncodeParam.Gray, mxPngEncodeParam.Palette, mxPngEncodeParam.RGB |
Field Summary |
---|
Fields inherited from class com.mxgraph.util.png.mxPngEncodeParam |
---|
bitDepth, bitDepthSet, INTENT_ABSOLUTE, INTENT_PERCEPTUAL, INTENT_RELATIVE, INTENT_SATURATION, PNG_FILTER_AVERAGE, PNG_FILTER_NONE, PNG_FILTER_PAETH, PNG_FILTER_SUB, PNG_FILTER_UP |
Constructor Summary | |
---|---|
mxPngEncodeParam.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 |
Constructor Detail |
---|
public mxPngEncodeParam.RGB()
PNGEncodeParam.RGB
.
Method Detail |
---|
public void unsetBackground()
unsetBackground
in class mxPngEncodeParam
public boolean isBackgroundSet()
isBackgroundSet
in class mxPngEncodeParam
public void setBitDepth(int bitDepth)
setBitDepth
in class mxPngEncodeParam
public void setBackgroundRGB(int[] rgb)
rgb
parameter should have 3 entries.
The 'bKGD' chunk will encode this information.
public int[] getBackgroundRGB()
If the background color has not previously been set, or has been
unset, an IllegalStateException
will be thrown.
IllegalStateException
- if the background color is not set.public void setTransparentRGB(int[] transparentRGB)
Setting this attribute will cause the alpha channel of the input image to be ignored.
The 'tRNS' chunk will encode this information.
public int[] getTransparentRGB()
If the transparent color has not previously been set,
or has been unset, an IllegalStateException
will be thrown.
IllegalStateException
- if the transparent color is not set.
|
mxGraph 2.1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |