?? pngencoder.html
字號:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#pngEncode(boolean)">pngEncode</A></B>(boolean encodeAlpha)</CODE><BR> Creates an array of bytes that is the PNG equivalent of the current image, specifying whether to encode alpha or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#resizeByteArray(byte[], int)">resizeByteArray</A></B>(byte[] array, int newLength)</CODE><BR> Increase or decrease the length of a byte array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#setCompressionLevel(int)">setCompressionLevel</A></B>(int level)</CODE><BR> Set the compression level to use</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#setEncodeAlpha(boolean)">setEncodeAlpha</A></B>(boolean encodeAlpha)</CODE><BR> Set the alpha encoding on or off.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#setFilter(int)">setFilter</A></B>(int whichFilter)</CODE><BR> Set the filter to use</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#setImage(java.awt.Image)">setImage</A></B>(java.awt.Image image)</CODE><BR> Set the image to be encoded</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeByte(int, int)">writeByte</A></B>(int b, int offset)</CODE><BR> Write a single byte into the pngBytes array at a given position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeBytes(byte[], int)">writeBytes</A></B>(byte[] data, int offset)</CODE><BR> Write an array of bytes into the pngBytes array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeBytes(byte[], int, int)">writeBytes</A></B>(byte[] data, int nBytes, int offset)</CODE><BR> Write an array of bytes into the pngBytes array, specifying number of bytes to write.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeEnd()">writeEnd</A></B>()</CODE><BR> Write a PNG "IEND" chunk into the pngBytes array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeHeader()">writeHeader</A></B>()</CODE><BR> Write a PNG "IHDR" chunk into the pngBytes array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeImageData()">writeImageData</A></B>()</CODE><BR> Write the image data into the pngBytes array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeInt2(int, int)">writeInt2</A></B>(int n, int offset)</CODE><BR> Write a two-byte integer into the pngBytes array at a given position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/keypoint/PngEncoder.html#writeInt4(int, int)">writeInt4</A></B>(int n, int offset)</CODE><BR> Write a four-byte integer into the pngBytes array at a given position.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="ENCODE_ALPHA"><!-- --></A><H3>ENCODE_ALPHA</H3><PRE>public static final boolean <B>ENCODE_ALPHA</B></PRE><DL><DD>Constant specifying that alpha channel should be encoded.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.keypoint.PngEncoder.ENCODE_ALPHA">Constant Field Values</A></DL></DL><HR><A NAME="NO_ALPHA"><!-- --></A><H3>NO_ALPHA</H3><PRE>public static final boolean <B>NO_ALPHA</B></PRE><DL><DD>Constant specifying that alpha channel should not be encoded.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.keypoint.PngEncoder.NO_ALPHA">Constant Field Values</A></DL></DL><HR><A NAME="FILTER_NONE"><!-- --></A><H3>FILTER_NONE</H3><PRE>public static final int <B>FILTER_NONE</B></PRE><DL><DD>Constants for filter (NONE)<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.keypoint.PngEncoder.FILTER_NONE">Constant Field Values</A></DL></DL><HR><A NAME="FILTER_SUB"><!-- --></A><H3>FILTER_SUB</H3><PRE>public static final int <B>FILTER_SUB</B></PRE><DL><DD>Constants for filter (SUB)<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.keypoint.PngEncoder.FILTER_SUB">Constant Field Values</A></DL></DL><HR><A NAME="FILTER_UP"><!-- --></A><H3>FILTER_UP</H3><PRE>public static final int <B>FILTER_UP</B></PRE><DL><DD>Constants for filter (UP)<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.keypoint.PngEncoder.FILTER_UP">Constant Field Values</A></DL></DL><HR><A NAME="FILTER_LAST"><!-- --></A><H3>FILTER_LAST</H3><PRE>public static final int <B>FILTER_LAST</B></PRE><DL><DD>Constants for filter (LAST)<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.keypoint.PngEncoder.FILTER_LAST">Constant Field Values</A></DL></DL><HR><A NAME="IHDR"><!-- --></A><H3>IHDR</H3><PRE>protected static final byte[] <B>IHDR</B></PRE><DL><DD>IHDR tag.<P><DL></DL></DL><HR><A NAME="IDAT"><!-- --></A><H3>IDAT</H3><PRE>protected static final byte[] <B>IDAT</B></PRE><DL><DD>IDAT tag.<P><DL></DL></DL><HR><A NAME="IEND"><!-- --></A><H3>IEND</H3><PRE>protected static final byte[] <B>IEND</B></PRE><DL><DD>IEND tag.<P><DL></DL></DL><HR><A NAME="pngBytes"><!-- --></A><H3>pngBytes</H3><PRE>protected byte[] <B>pngBytes</B></PRE><DL><DD>The png bytes.<P><DL></DL></DL><HR><A NAME="priorRow"><!-- --></A><H3>priorRow</H3><PRE>protected byte[] <B>priorRow</B></PRE><DL><DD>The prior row.<P><DL></DL></DL><HR><A NAME="leftBytes"><!-- --></A><H3>leftBytes</H3><PRE>protected byte[] <B>leftBytes</B></PRE><DL><DD>The left bytes.<P><DL></DL></DL><HR><A NAME="image"><!-- --></A><H3>image</H3><PRE>protected java.awt.Image <B>image</B></PRE><DL><DD>The image.<P><DL></DL></DL><HR><A NAME="width"><!-- --></A><H3>width</H3><PRE>protected int <B>width</B></PRE><DL><DD>The width.<P><DL></DL></DL><HR><A NAME="height"><!-- --></A><H3>height</H3><PRE>protected int <B>height</B></PRE><DL><DD>The width.<P><DL></DL></DL><HR><A NAME="bytePos"><!-- --></A><H3>bytePos</H3><PRE>protected int <B>bytePos</B></PRE><DL><DD>The byte position.<P><DL></DL></DL><HR><A NAME="maxPos"><!-- --></A><H3>maxPos</H3><PRE>protected int <B>maxPos</B></PRE><DL><DD>The byte position.<P><DL></DL></DL><HR><A NAME="crc"><!-- --></A><H3>crc</H3><PRE>protected java.util.zip.CRC32 <B>crc</B></PRE><DL><DD>CRC.<P><DL></DL></DL><HR><A NAME="crcValue"><!-- --></A><H3>crcValue</H3><PRE>protected long <B>crcValue</B></PRE><DL><DD>The CRC value.<P><DL></DL></DL><HR><A NAME="encodeAlpha"><!-- --></A><H3>encodeAlpha</H3><PRE>protected boolean <B>encodeAlpha</B></PRE><DL><DD>Encode alpha?<P><DL></DL></DL><HR><A NAME="filter"><!-- --></A><H3>filter</H3><PRE>protected int <B>filter</B></PRE><DL><DD>The filter type.<P><DL></DL></DL><HR><A NAME="bytesPerPixel"><!-- --></A><H3>bytesPerPixel</H3><PRE>protected int <B>bytesPerPixel</B></PRE><DL><DD>The bytes-per-pixel.<P><DL></DL></DL><HR><A NAME="compressionLevel"><!-- --></A><H3>compressionLevel</H3><PRE>protected int <B>compressionLevel</B></PRE><DL><DD>The compression level.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -