📄 encoderutil.html
字号:
</TABLE><A NAME="EncoderUtil()"><!-- --></A><H3>EncoderUtil</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.55"><B>EncoderUtil</B></A>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="encode(java.awt.image.BufferedImage, java.lang.String)"><!-- --></A><H3>encode</H3><PRE>public static byte[] <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.66"><B>encode</B></A>(java.awt.image.BufferedImage image, java.lang.String format) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DT><B>Returns:</B><DD>The byte[] that is the encoded image.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="encode(java.awt.image.BufferedImage, java.lang.String, boolean)"><!-- --></A><H3>encode</H3><PRE>public static byte[] <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.82"><B>encode</B></A>(java.awt.image.BufferedImage image, java.lang.String format, boolean encodeAlpha) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DD><CODE>encodeAlpha</CODE> - Whether to encode alpha transparency (not supported by all ImageEncoders).<DT><B>Returns:</B><DD>The byte[] that is the encoded image.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="encode(java.awt.image.BufferedImage, java.lang.String, float)"><!-- --></A><H3>encode</H3><PRE>public static byte[] <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.99"><B>encode</B></A>(java.awt.image.BufferedImage image, java.lang.String format, float quality) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DD><CODE>quality</CODE> - The quality to use for the image encoding (not supported by all ImageEncoders).<DT><B>Returns:</B><DD>The byte[] that is the encoded image.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="encode(java.awt.image.BufferedImage, java.lang.String, float, boolean)"><!-- --></A><H3>encode</H3><PRE>public static byte[] <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.118"><B>encode</B></A>(java.awt.image.BufferedImage image, java.lang.String format, float quality, boolean encodeAlpha) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DD><CODE>quality</CODE> - The quality to use for the image encoding (not supported by all ImageEncoders).<DD><CODE>encodeAlpha</CODE> - Whether to encode alpha transparency (not supported by all ImageEncoders).<DT><B>Returns:</B><DD>The byte[] that is the encoded image.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="writeBufferedImage(java.awt.image.BufferedImage, java.lang.String, java.io.OutputStream)"><!-- --></A><H3>writeBufferedImage</H3><PRE>public static void <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.134"><B>writeBufferedImage</B></A>(java.awt.image.BufferedImage image, java.lang.String format, java.io.OutputStream outputStream) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format and write it to an OutputStream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DD><CODE>outputStream</CODE> - The OutputStream to write the encoded image to.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="writeBufferedImage(java.awt.image.BufferedImage, java.lang.String, java.io.OutputStream, float)"><!-- --></A><H3>writeBufferedImage</H3><PRE>public static void <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.150"><B>writeBufferedImage</B></A>(java.awt.image.BufferedImage image, java.lang.String format, java.io.OutputStream outputStream, float quality) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format and write it to an OutputStream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DD><CODE>outputStream</CODE> - The OutputStream to write the encoded image to.<DD><CODE>quality</CODE> - The quality to use for the image encoding (not supported by all ImageEncoders).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="writeBufferedImage(java.awt.image.BufferedImage, java.lang.String, java.io.OutputStream, boolean)"><!-- --></A><H3>writeBufferedImage</H3><PRE>public static void <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.167"><B>writeBufferedImage</B></A>(java.awt.image.BufferedImage image, java.lang.String format, java.io.OutputStream outputStream, boolean encodeAlpha) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format and write it to an OutputStream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DD><CODE>outputStream</CODE> - The OutputStream to write the encoded image to.<DD><CODE>encodeAlpha</CODE> - Whether to encode alpha transparency (not supported by all ImageEncoders).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="writeBufferedImage(java.awt.image.BufferedImage, java.lang.String, java.io.OutputStream, float, boolean)"><!-- --></A><H3>writeBufferedImage</H3><PRE>public static void <A HREF="../../../../src-html/org/jfree/chart/encoders/EncoderUtil.html#line.186"><B>writeBufferedImage</B></A>(java.awt.image.BufferedImage image, java.lang.String format, java.io.OutputStream outputStream, float quality, boolean encodeAlpha) throws java.io.IOException</PRE><DL><DD>Encode the image in a specific format and write it to an OutputStream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to be encoded.<DD><CODE>format</CODE> - The <A HREF="../../../../org/jfree/chart/encoders/ImageFormat.html" title="interface in org.jfree.chart.encoders"><CODE>ImageFormat</CODE></A> to use.<DD><CODE>outputStream</CODE> - The OutputStream to write the encoded image to.<DD><CODE>quality</CODE> - The quality to use for the image encoding (not supported by all ImageEncoders).<DD><CODE>encodeAlpha</CODE> - Whether to encode alpha transparency (not supported by all ImageEncoders).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EncoderUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../org/jfree/chart/encoders/ImageEncoder.html" title="interface in org.jfree.chart.encoders"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/chart/encoders/EncoderUtil.html" target="_top"><B>FRAMES</B></A> <A HREF="EncoderUtil.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -