📄 memoryimagesource.html
字号:
</DD></DL><HR><A NAME="removeConsumer(java.awt.image.ImageConsumer)"><!-- --></A><H3>removeConsumer</H3><PRE>public void <B>removeConsumer</B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A> ic)</PRE><DL><DD>Remove an ImageConsumer from the list of consumers interested in data for this image.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/ImageProducer.html#removeConsumer(java.awt.image.ImageConsumer)">removeConsumer</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/ImageProducer.html">ImageProducer</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A></DL></DD></DL><HR><A NAME="startProduction(java.awt.image.ImageConsumer)"><!-- --></A><H3>startProduction</H3><PRE>public void <B>startProduction</B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A> ic)</PRE><DL><DD>Adds an ImageConsumer to the list of consumers interested in data for this image, and immediately start delivery of the image data through the ImageConsumer interface.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/ImageProducer.html#startProduction(java.awt.image.ImageConsumer)">startProduction</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/ImageProducer.html">ImageProducer</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A></DL></DD></DL><HR><A NAME="requestTopDownLeftRightResend(java.awt.image.ImageConsumer)"><!-- --></A><H3>requestTopDownLeftRightResend</H3><PRE>public void <B>requestTopDownLeftRightResend</B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A> ic)</PRE><DL><DD>Requests that a given ImageConsumer have the image data delivered one more time in top-down, left-right order.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/ImageProducer.html#requestTopDownLeftRightResend(java.awt.image.ImageConsumer)">requestTopDownLeftRightResend</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/ImageProducer.html">ImageProducer</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A></DL></DD></DL><HR><A NAME="setAnimated(boolean)"><!-- --></A><H3>setAnimated</H3><PRE>public void <B>setAnimated</B>(boolean animated)</PRE><DL><DD>Change this memory image into a multi-frame animation or a single-frame static image depending on the animated parameter. <p>This method should be called immediately after the MemoryImageSource is constructed and before an image is created with it to ensure that all ImageConsumers will receive the correct multi-frame data. If an ImageConsumer is added to this ImageProducer before this flag is set then that ImageConsumer will see only a snapshot of the pixel data that was available when it connected.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>animated</CODE> - true if the image is a multi-frame animation</DL></DD></DL><HR><A NAME="setFullBufferUpdates(boolean)"><!-- --></A><H3>setFullBufferUpdates</H3><PRE>public void <B>setFullBufferUpdates</B>(boolean fullbuffers)</PRE><DL><DD>Specify whether this animated memory image should always be updated by sending the complete buffer of pixels whenever there is a change. This flag is ignored if the animation flag is not turned on through the setAnimated() method. <p>This method should be called immediately after the MemoryImageSource is constructed and before an image is created with it to ensure that all ImageConsumers will receive the correct pixel delivery hints.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fullbuffers</CODE> - true if the complete pixel buffer should always be sent<DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/MemoryImageSource.html#setAnimated(boolean)"><CODE>setAnimated(boolean)</CODE></A></DL></DD></DL><HR><A NAME="newPixels()"><!-- --></A><H3>newPixels</H3><PRE>public void <B>newPixels</B>()</PRE><DL><DD>Send a whole new buffer of pixels to any ImageConsumers that are currently interested in the data for this image and notify them that an animation frame is complete. This method only has effect if the animation flag has been turned on through the setAnimated() method.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A>, <A HREF="../../../java/awt/image/MemoryImageSource.html#setAnimated(boolean)"><CODE>setAnimated(boolean)</CODE></A></DL></DD></DL><HR><A NAME="newPixels(int, int, int, int)"><!-- --></A><H3>newPixels</H3><PRE>public void <B>newPixels</B>(int x, int y, int w, int h)</PRE><DL><DD>Send a rectangular region of the buffer of pixels to any ImageConsumers that are currently interested in the data for this image and notify them that an animation frame is complete. This method only has effect if the animation flag has been turned on through the setAnimated() method. If the full buffer update flag was turned on with the setFullBufferUpdates() method then the rectangle parameters will be ignored and the entire buffer will always be sent.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate of the upper left corner of the rectangle of pixels to be sent<DD><CODE>y</CODE> - the y coordinate of the upper left corner of the rectangle of pixels to be sent<DD><CODE>w</CODE> - the width of the rectangle of pixels to be sent<DD><CODE>h</CODE> - the height of the rectangle of pixels to be sent<DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A>, <A HREF="../../../java/awt/image/MemoryImageSource.html#setAnimated(boolean)"><CODE>setAnimated(boolean)</CODE></A>, <A HREF="../../../java/awt/image/MemoryImageSource.html#setFullBufferUpdates(boolean)"><CODE>setFullBufferUpdates(boolean)</CODE></A></DL></DD></DL><HR><A NAME="newPixels(int, int, int, int, boolean)"><!-- --></A><H3>newPixels</H3><PRE>public void <B>newPixels</B>(int x, int y, int w, int h, boolean framenotify)</PRE><DL><DD>Send a rectangular region of the buffer of pixels to any ImageConsumers that are currently interested in the data for this image. If the framenotify parameter is true then the consumers are also notified that an animation frame is complete. This method only has effect if the animation flag has been turned on through the setAnimated() method. If the full buffer update flag was turned on with the setFullBufferUpdates() method then the rectangle parameters will be ignored and the entire buffer will always be sent.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate of the upper left corner of the rectangle of pixels to be sent<DD><CODE>y</CODE> - the y coordinate of the upper left corner of the rectangle of pixels to be sent<DD><CODE>w</CODE> - the width of the rectangle of pixels to be sent<DD><CODE>h</CODE> - the height of the rectangle of pixels to be sent<DD><CODE>framenotify</CODE> - true if the consumers should be sent a SINGLEFRAMEDONE notification<DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A>, <A HREF="../../../java/awt/image/MemoryImageSource.html#setAnimated(boolean)"><CODE>setAnimated(boolean)</CODE></A>, <A HREF="../../../java/awt/image/MemoryImageSource.html#setFullBufferUpdates(boolean)"><CODE>setFullBufferUpdates(boolean)</CODE></A></DL></DD></DL><HR><A NAME="newPixels(byte[], java.awt.image.ColorModel, int, int)"><!-- --></A><H3>newPixels</H3><PRE>public void <B>newPixels</B>(byte[] newpix, <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> newmodel, int offset, int scansize)</PRE><DL><DD>Change to a new byte array to hold the pixels for this image. If the animation flag has been turned on through the setAnimated() method, then the new pixels will be immediately delivered to any ImageConsumers that are currently interested in the data for this image.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/MemoryImageSource.html#setAnimated(boolean)"><CODE>setAnimated(boolean)</CODE></A></DL></DD></DL><HR><A NAME="newPixels(int[], java.awt.image.ColorModel, int, int)"><!-- --></A><H3>newPixels</H3><PRE>public void <B>newPixels</B>(int[] newpix, <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> newmodel, int offset, int scansize)</PRE><DL><DD>Change to a new int array to hold the pixels for this image. If the animation flag has been turned on through the setAnimated() method, then the new pixels will be immediately delivered to any ImageConsumers that are currently interested in the data for this image.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/MemoryImageSource.html#setAnimated(boolean)"><CODE>setAnimated(boolean)</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/MemoryImageSource.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/LookupTable.html"><B>PREV CLASS</B></A> <A HREF="../../../java/awt/image/MultiPixelPackedSampleModel.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="MemoryImageSource.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -