|
mxGraph 1.10.3.0 |
|||||||||
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.Gray
public static class mxPngEncodeParam.Gray
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.Gray()
Constructs an instance of PNGEncodeParam.Gray . |
Method Summary | |
---|---|
int |
getBackgroundGray()
Returns the suggested gray level of the background. |
int |
getBitShift()
Returns the desired bit shift for a grayscale image. |
int |
getTransparentGray()
Returns the gray value to be used to denote transparency. |
boolean |
isBackgroundSet()
Returns true if a 'bKGD' chunk will be output. |
boolean |
isBitDepthSet()
Returns true if the bit depth has been set. |
boolean |
isBitShiftSet()
Returns true if the bit shift has been set. |
void |
setBackgroundGray(int gray)
Sets the suggested gray level of the background. |
void |
setBitDepth(int bitDepth)
Sets the desired bit depth for a grayscale image. |
void |
setBitShift(int bitShift)
Sets the desired bit shift for a grayscale image. |
void |
setTransparentGray(int transparentGray)
Sets the gray value to be used to denote transparency. |
void |
unsetBackground()
Suppresses the 'bKGD' chunk from being output. |
void |
unsetBitShift()
Suppresses the setting of the bit shift of a grayscale image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public mxPngEncodeParam.Gray()
PNGEncodeParam.Gray
.
Method Detail |
---|
public void unsetBackground()
unsetBackground
in class mxPngEncodeParam
public boolean isBackgroundSet()
isBackgroundSet
in class mxPngEncodeParam
public void setBitDepth(int bitDepth)
When encoding a source image of a greater bit depth,
pixel values will be clamped to the smaller range after
shifting by the value given by getBitShift()
.
When encoding a source image of a smaller bit depth, pixel
values will be shifted and left-filled with zeroes.
setBitDepth
in class mxPngEncodeParam
public void setBackgroundGray(int gray)
The 'bKGD' chunk will encode this information.
public int getBackgroundGray()
If the background gray level has not previously been
set, or has been unset, an
IllegalStateException
will be thrown.
IllegalStateException
- if the background gray level
is not set.public void setTransparentGray(int transparentGray)
Setting this attribute will cause the alpha channel of the input image to be ignored.
The 'tRNS' chunk will encode this information.
public int getTransparentGray()
If the transparent gray value has not previously been
set, or has been unset, an
IllegalStateException
will be thrown.
IllegalStateException
- if the transparent gray value
is not set.public void setBitShift(int bitShift)
public int getBitShift()
If the bit shift has not previously been set, or has been
unset, an IllegalStateException
will be thrown.
IllegalStateException
- if the bit shift is not set.public void unsetBitShift()
public boolean isBitShiftSet()
public boolean isBitDepthSet()
|
mxGraph 1.10.3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |