imageobserver.html
来自「API資料大全」· HTML 代码 · 共 439 行 · 第 1/2 页
HTML
439 行
<A NAME="HEIGHT"><!-- --></A><H3>HEIGHT</H3><PRE>public static final int <B>HEIGHT</B></PRE><DL><DD>This flag in the infoflags argument to imageUpdate indicates that the height of the base image is now available and can be taken from the height argument to the imageUpdate callback method.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Image.html#getHeight(java.awt.image.ImageObserver)"><CODE>Image.getHeight(java.awt.image.ImageObserver)</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)"><CODE>imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="PROPERTIES"><!-- --></A><H3>PROPERTIES</H3><PRE>public static final int <B>PROPERTIES</B></PRE><DL><DD>This flag in the infoflags argument to imageUpdate indicates that the properties of the image are now available.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Image.html#getProperty(java.lang.String, java.awt.image.ImageObserver)"><CODE>Image.getProperty(java.lang.String, java.awt.image.ImageObserver)</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)"><CODE>imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="SOMEBITS"><!-- --></A><H3>SOMEBITS</H3><PRE>public static final int <B>SOMEBITS</B></PRE><DL><DD>This flag in the infoflags argument to imageUpdate indicates that more pixels needed for drawing a scaled variation of the image are available. The bounding box of the new pixels can be taken from the x, y, width, and height arguments to the imageUpdate callback method.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)"><CODE>Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)"><CODE>imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="FRAMEBITS"><!-- --></A><H3>FRAMEBITS</H3><PRE>public static final int <B>FRAMEBITS</B></PRE><DL><DD>This flag in the infoflags argument to imageUpdate indicates that another complete frame of a multi-frame image which was previously drawn is now available to be drawn again. The x, y, width, and height arguments to the imageUpdate callback method should be ignored.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)"><CODE>Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)"><CODE>imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="ALLBITS"><!-- --></A><H3>ALLBITS</H3><PRE>public static final int <B>ALLBITS</B></PRE><DL><DD>This flag in the infoflags argument to imageUpdate indicates that a static image which was previously drawn is now complete and can be drawn again in its final form. The x, y, width, and height arguments to the imageUpdate callback method should be ignored.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)"><CODE>Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)"><CODE>imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="ERROR"><!-- --></A><H3>ERROR</H3><PRE>public static final int <B>ERROR</B></PRE><DL><DD>This flag in the infoflags argument to imageUpdate indicates that an image which was being tracked asynchronously has encountered an error. No further information will become available and drawing the image will fail. As a convenience, the ABORT flag will be indicated at the same time to indicate that the image production was aborted.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)"><CODE>imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="ABORT"><!-- --></A><H3>ABORT</H3><PRE>public static final int <B>ABORT</B></PRE><DL><DD>This flag in the infoflags argument to imageUpdate indicates that an image which was being tracked asynchronously was aborted before production was complete. No more information will become available without further action to trigger another image production sequence. If the ERROR flag was not also set in this image update, then accessing any of the data in the image will restart the production again, probably from the beginning.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)"><CODE>imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL></DD></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="imageUpdate(java.awt.Image, int, int, int, int, int)"><!-- --></A><H3>imageUpdate</H3><PRE>public boolean <B>imageUpdate</B>(<A HREF="../../../java/awt/Image.html">Image</A> img, int infoflags, int x, int y, int width, int height)</PRE><DL><DD>This method is called when information about an image which was previously requested using an asynchronous interface becomes available. Asynchronous interfaces are method calls such as getWidth(ImageObserver) and drawImage(img, x, y, ImageObserver) which take an ImageObserver object as an argument. Those methods register the caller as interested either in information about the overall image itself (in the case of getWidth(ImageObserver)) or about an output version of an image (in the case of the drawImage(img, x, y, [w, h,] ImageObserver) call). <p>This method should return true if further updates are needed or false if the required information has been acquired. The image which was being tracked is passed in using the img argument. Various constants are combined to form the infoflags argument which indicates what information about the image is now available. The interpretation of the x, y, width, and height arguments depends on the contents of the infoflags argument. <p> The <code>infoflags</code> argument should be the bitwise inclusive <b>OR</b> of the following flags: <code>WIDTH</code>, <code>HEIGHT</code>, <code>PROPERTIES</code>, <code>SOMEBITS</code>, <code>FRAMEBITS</code>, <code>ALLBITS</code>, <code>ERROR</code>, <code>ABORT</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>img</CODE> - the image being observed.<DD><CODE>infoflags</CODE> - the bitwise inclusive OR of the following flags: <code>WIDTH</code>, <code>HEIGHT</code>, <code>PROPERTIES</code>, <code>SOMEBITS</code>, <code>FRAMEBITS</code>, <code>ALLBITS</code>, <code>ERROR</code>, <code>ABORT</code>.<DD><CODE>x</CODE> - the <i>x</i> coordinate.<DD><CODE>y</CODE> - the <i>y</i> coordinate.<DD><CODE>width</CODE> - the width.<DD><CODE>height</CODE> - the height.<DT><B>Returns:</B><DD><code>false</code> if the infoflags indicate that the image is completely loaded; <code>true</code> otherwise.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageObserver.html#WIDTH"><CODE>WIDTH</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#HEIGHT"><CODE>HEIGHT</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#PROPERTIES"><CODE>PROPERTIES</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#SOMEBITS"><CODE>SOMEBITS</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#FRAMEBITS"><CODE>FRAMEBITS</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#ALLBITS"><CODE>ALLBITS</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#ERROR"><CODE>ERROR</CODE></A>, <A HREF="../../../java/awt/image/ImageObserver.html#ABORT"><CODE>ABORT</CODE></A>, <A HREF="../../../java/awt/Image.html#getWidth(java.awt.image.ImageObserver)"><CODE>Image.getWidth(java.awt.image.ImageObserver)</CODE></A>, <A HREF="../../../java/awt/Image.html#getHeight(java.awt.image.ImageObserver)"><CODE>Image.getHeight(java.awt.image.ImageObserver)</CODE></A>, <A HREF="../../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)"><CODE>Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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/ImageObserver.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../java/awt/image/ImageConsumer.html"><B>PREV CLASS</B></A> <A HREF="../../../java/awt/image/ImageProducer.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ImageObserver.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?