⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memoryimagesource.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 are currently interested in the data for this image and notify them that an animation frame is complete.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#newPixels(byte[], java.awt.image.ColorModel, int, int)">newPixels</A></B>(byte[]&nbsp;newpix,          <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;newmodel,          int&nbsp;offset,          int&nbsp;scansize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change to a new byte array to hold the pixels for this image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#newPixels(int[], java.awt.image.ColorModel, int, int)">newPixels</A></B>(int[]&nbsp;newpix,          <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;newmodel,          int&nbsp;offset,          int&nbsp;scansize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change to a new int array to hold the pixels for this image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#newPixels(int, int, int, int)">newPixels</A></B>(int&nbsp;x,          int&nbsp;y,          int&nbsp;w,          int&nbsp;h)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#newPixels(int, int, int, int, boolean)">newPixels</A></B>(int&nbsp;x,          int&nbsp;y,          int&nbsp;w,          int&nbsp;h,          boolean&nbsp;framenotify)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send a rectangular region of the buffer of pixels to any ImageConsumers that are currently interested in the data for this image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#removeConsumer(java.awt.image.ImageConsumer)">removeConsumer</A></B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A>&nbsp;ic)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove an ImageConsumer from the list of consumers interested in data for this image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#requestTopDownLeftRightResend(java.awt.image.ImageConsumer)">requestTopDownLeftRightResend</A></B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A>&nbsp;ic)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requests that a given ImageConsumer have the image data delivered one more time in top-down, left-right order.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#setAnimated(boolean)">setAnimated</A></B>(boolean&nbsp;animated)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change this memory image into a multi-frame animation or a single-frame static image depending on the animated parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#setFullBufferUpdates(boolean)">setFullBufferUpdates</A></B>(boolean&nbsp;fullbuffers)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify whether this animated memory image should always be updated by sending the complete buffer of pixels whenever there is a change.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/MemoryImageSource.html#startProduction(java.awt.image.ImageConsumer)">startProduction</A></B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A>&nbsp;ic)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR></TABLE>&nbsp;<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.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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><A NAME="MemoryImageSource(int, int, java.awt.image.ColorModel, byte[], int, int)"><!-- --></A><H3>MemoryImageSource</H3><PRE>public <B>MemoryImageSource</B>(int&nbsp;w,                         int&nbsp;h,                         <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;cm,                         byte[]&nbsp;pix,                         int&nbsp;off,                         int&nbsp;scan)</PRE><DL><DD>Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Component.html#createImage(java.awt.image.ImageProducer)"><CODE>Component.createImage(java.awt.image.ImageProducer)</CODE></A></DL></DD></DL><HR><A NAME="MemoryImageSource(int, int, java.awt.image.ColorModel, byte[], int, int, java.util.Hashtable)"><!-- --></A><H3>MemoryImageSource</H3><PRE>public <B>MemoryImageSource</B>(int&nbsp;w,                         int&nbsp;h,                         <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;cm,                         byte[]&nbsp;pix,                         int&nbsp;off,                         int&nbsp;scan,                         <A HREF="../../../java/util/Hashtable.html">Hashtable</A>&nbsp;props)</PRE><DL><DD>Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Component.html#createImage(java.awt.image.ImageProducer)"><CODE>Component.createImage(java.awt.image.ImageProducer)</CODE></A></DL></DD></DL><HR><A NAME="MemoryImageSource(int, int, java.awt.image.ColorModel, int[], int, int)"><!-- --></A><H3>MemoryImageSource</H3><PRE>public <B>MemoryImageSource</B>(int&nbsp;w,                         int&nbsp;h,                         <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;cm,                         int[]&nbsp;pix,                         int&nbsp;off,                         int&nbsp;scan)</PRE><DL><DD>Constructs an ImageProducer object which uses an array of integers to produce data for an Image object.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Component.html#createImage(java.awt.image.ImageProducer)"><CODE>Component.createImage(java.awt.image.ImageProducer)</CODE></A></DL></DD></DL><HR><A NAME="MemoryImageSource(int, int, java.awt.image.ColorModel, int[], int, int, java.util.Hashtable)"><!-- --></A><H3>MemoryImageSource</H3><PRE>public <B>MemoryImageSource</B>(int&nbsp;w,                         int&nbsp;h,                         <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;cm,                         int[]&nbsp;pix,                         int&nbsp;off,                         int&nbsp;scan,                         <A HREF="../../../java/util/Hashtable.html">Hashtable</A>&nbsp;props)</PRE><DL><DD>Constructs an ImageProducer object which uses an array of integers to produce data for an Image object.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Component.html#createImage(java.awt.image.ImageProducer)"><CODE>Component.createImage(java.awt.image.ImageProducer)</CODE></A></DL></DD></DL><HR><A NAME="MemoryImageSource(int, int, int[], int, int)"><!-- --></A><H3>MemoryImageSource</H3><PRE>public <B>MemoryImageSource</B>(int&nbsp;w,                         int&nbsp;h,                         int[]&nbsp;pix,                         int&nbsp;off,                         int&nbsp;scan)</PRE><DL><DD>Constructs an ImageProducer object which uses an array of integers in the default RGB ColorModel to produce data for an Image object.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Component.html#createImage(java.awt.image.ImageProducer)"><CODE>Component.createImage(java.awt.image.ImageProducer)</CODE></A>, <A HREF="../../../java/awt/image/ColorModel.html#getRGBdefault()"><CODE>ColorModel.getRGBdefault()</CODE></A></DL></DD></DL><HR><A NAME="MemoryImageSource(int, int, int[], int, int, java.util.Hashtable)"><!-- --></A><H3>MemoryImageSource</H3><PRE>public <B>MemoryImageSource</B>(int&nbsp;w,                         int&nbsp;h,                         int[]&nbsp;pix,                         int&nbsp;off,                         int&nbsp;scan,                         <A HREF="../../../java/util/Hashtable.html">Hashtable</A>&nbsp;props)</PRE><DL><DD>Constructs an ImageProducer object which uses an array of integers in the default RGB ColorModel to produce data for an Image object.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Component.html#createImage(java.awt.image.ImageProducer)"><CODE>Component.createImage(java.awt.image.ImageProducer)</CODE></A>, <A HREF="../../../java/awt/image/ColorModel.html#getRGBdefault()"><CODE>ColorModel.getRGBdefault()</CODE></A></DL></DD></DL><!-- ============ 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="addConsumer(java.awt.image.ImageConsumer)"><!-- --></A><H3>addConsumer</H3><PRE>public void <B>addConsumer</B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A>&nbsp;ic)</PRE><DL><DD>Adds an ImageConsumer to 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#addConsumer(java.awt.image.ImageConsumer)">addConsumer</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="isConsumer(java.awt.image.ImageConsumer)"><!-- --></A><H3>isConsumer</H3><PRE>public boolean <B>isConsumer</B>(<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A>&nbsp;ic)</PRE><DL><DD>Determine if an ImageConsumer is on the list of consumers currently interested in data for this image.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/ImageProducer.html#isConsumer(java.awt.image.ImageConsumer)">isConsumer</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/ImageProducer.html">ImageProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the ImageConsumer is on the list; false otherwise<DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A></DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -