<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">com.mxgraph.util.png.mxPngEncodeParam</A>
<IMGSRC="../../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.util.png.mxPngEncodeParam.Gray</B>
</PRE>
<DL>
<DT><B>Enclosing class:</B><DD><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public static class <B>mxPngEncodeParam.Gray</B><DT>extends <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></DL>
<THALIGN="left"><B>Nested classes/interfaces inherited from class com.mxgraph.util.png.<AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.Gray.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.Gray</A>, <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.Palette.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.Palette</A>, <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.RGB.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.RGB</A></CODE></TD>
<THALIGN="left"><B>Fields inherited from class com.mxgraph.util.png.<AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></B></TH>
<THALIGN="left"><B>Methods inherited from class com.mxgraph.util.png.<AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></B></TH>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
<DD>Suppresses the 'bKGD' chunk from being output.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#unsetBackground()">unsetBackground</A></CODE> in class <CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isBackgroundSet()"><!----></A><H3>
isBackgroundSet</H3>
<PRE>
public boolean <B>isBackgroundSet</B>()</PRE>
<DL>
<DD>Returns true if a 'bKGD' chunk will be output.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#isBackgroundSet()">isBackgroundSet</A></CODE> in class <CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setBitDepth(int)"><!----></A><H3>
setBitDepth</H3>
<PRE>
public void <B>setBitDepth</B>(int bitDepth)</PRE>
<DL>
<DD>Sets the desired bit depth for a grayscale image. The bit
depth must be one of 1, 2, 4, 8, or 16.
<p> 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 <code>getBitShift()</code>.
When encoding a source image of a smaller bit depth, pixel
values will be shifted and left-filled with zeroes.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#setBitDepth(int)">setBitDepth</A></CODE> in class <CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setBackgroundGray(int)"><!----></A><H3>
setBackgroundGray</H3>
<PRE>
public void <B>setBackgroundGray</B>(int gray)</PRE>
<DL>
<DD>Sets the suggested gray level of the background.
<p> The 'bKGD' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getBackgroundGray()"><!----></A><H3>
getBackgroundGray</H3>
<PRE>
public int <B>getBackgroundGray</B>()</PRE>
<DL>
<DD>Returns the suggested gray level of the background.
<p> If the background gray level has not previously been
set, or has been unset, an
<code>IllegalStateException</code> will be thrown.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the background gray level
is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="setTransparentGray(int)"><!----></A><H3>
setTransparentGray</H3>
<PRE>
public void <B>setTransparentGray</B>(int transparentGray)</PRE>
<DL>
<DD>Sets the gray value to be used to denote transparency.
<p> Setting this attribute will cause the alpha channel
of the input image to be ignored.
<p> The 'tRNS' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getTransparentGray()"><!----></A><H3>
getTransparentGray</H3>
<PRE>
public int <B>getTransparentGray</B>()</PRE>
<DL>
<DD>Returns the gray value to be used to denote transparency.
<p> If the transparent gray value has not previously been
set, or has been unset, an
<code>IllegalStateException</code> will be thrown.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the transparent gray value
is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="setBitShift(int)"><!----></A><H3>
setBitShift</H3>
<PRE>
public void <B>setBitShift</B>(int bitShift)</PRE>
<DL>
<DD>Sets the desired bit shift for a grayscale image.
Pixels in the source image will be shifted right by
the given amount prior to being clamped to the maximum
value given by the encoded image's bit depth.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getBitShift()"><!----></A><H3>
getBitShift</H3>
<PRE>
public int <B>getBitShift</B>()</PRE>
<DL>
<DD>Returns the desired bit shift for a grayscale image.
<p> If the bit shift has not previously been set, or has been
unset, an <code>IllegalStateException</code> will be thrown.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the bit shift is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetBitShift()"><!----></A><H3>
unsetBitShift</H3>
<PRE>
public void <B>unsetBitShift</B>()</PRE>
<DL>
<DD>Suppresses the setting of the bit shift of a grayscale image.
Pixels in the source image will not be shifted prior to encoding.