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

📄 qtimageproducer.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TABLE><A NAME="QTImageProducer(quicktime.app.display.QTDrawable, java.awt.Dimension)"><!-- --></A><H3>QTImageProducer</H3><PRE>public <B>QTImageProducer</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>&nbsp;qtSource,                       java.awt.Dimension&nbsp;initSize)                throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates an ImageProducer from the specified qtSource. The initialSize of the  qtSource should be specified to get the best pixel resolution of the source material.<DD><DL><DT><B>Parameters:</B><DD><CODE>qtSource</CODE> - the source of pixel data for the ImageProducer.<DD><CODE>initSize</CODE> - the intial size of the source data</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="getGWorld()"><!-- --></A><H3>getGWorld</H3><PRE>public <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>getGWorld</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isSingleFrame()"><!-- --></A><H3>isSingleFrame</H3><PRE>public boolean <B>isSingleFrame</B>()</PRE><DL><DD>Returns true if the Redrawable only has a single frame to render and thus will never need to re-acquire or redraw its image. Certain Redrawable objects are able to optimise their resources knowing this constraint.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Redrawable.html#isSingleFrame()">isSingleFrame</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Redrawable.html">Redrawable</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.image.Redrawable</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="addConsumer(java.awt.image.ImageConsumer)"><!-- --></A><H3>addConsumer</H3><PRE>public void <B>addConsumer</B>(java.awt.image.ImageConsumer&nbsp;ic)</PRE><DL><DD>This method is used to register an ImageConsumer with the ImageProducer for access to the image data during a later reconstruction of the Image.  The ImageProducer may, at its discretion, start delivering the image data to the consumer using the ImageConsumer interface immediately, or when the next available image reconstruction is triggered by a call to the startProduction method.<DD><DL><DT><B>Specified by: </B><DD><CODE>addConsumer</CODE> in interface <CODE>java.awt.image.ImageProducer</CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/image/QTImageProducer.html#startProduction(java.awt.image.ImageConsumer)"><CODE>startProduction(java.awt.image.ImageConsumer)</CODE></A></DL></DD></DL><HR><A NAME="isConsumer(java.awt.image.ImageConsumer)"><!-- --></A><H3>isConsumer</H3><PRE>public boolean <B>isConsumer</B>(java.awt.image.ImageConsumer&nbsp;ic)</PRE><DL><DD>This method determines if a given ImageConsumer object is currently registered with this ImageProducer as one of its consumers.<DD><DL><DT><B>Specified by: </B><DD><CODE>isConsumer</CODE> in interface <CODE>java.awt.image.ImageProducer</CODE></DL></DD></DL><HR><A NAME="removeConsumer(java.awt.image.ImageConsumer)"><!-- --></A><H3>removeConsumer</H3><PRE>public void <B>removeConsumer</B>(java.awt.image.ImageConsumer&nbsp;ic)</PRE><DL><DD>This method removes the given ImageConsumer object from the list of consumers currently registered to receive image data.  It is not considered an error to remove a consumer that is not currently registered. The ImageProducer should stop sending data to this consumer as soon as is feasible.<DD><DL><DT><B>Specified by: </B><DD><CODE>removeConsumer</CODE> in interface <CODE>java.awt.image.ImageProducer</CODE></DL></DD></DL><HR><A NAME="startProduction(java.awt.image.ImageConsumer)"><!-- --></A><H3>startProduction</H3><PRE>public void <B>startProduction</B>(java.awt.image.ImageConsumer&nbsp;ic)</PRE><DL><DD>This method both registers the given ImageConsumer object as a consumer and starts an immediate reconstruction of the image data which will then be delivered to this consumer and any other consumer which may have already been registered with the producer.  This method differs from the addConsumer method in that a reproduction of the image data should be triggered as soon as possible.<DD><DL><DT><B>Specified by: </B><DD><CODE>startProduction</CODE> in interface <CODE>java.awt.image.ImageProducer</CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/image/QTImageProducer.html#addConsumer(java.awt.image.ImageConsumer)"><CODE>addConsumer(java.awt.image.ImageConsumer)</CODE></A></DL></DD></DL><HR><A NAME="requestTopDownLeftRightResend(java.awt.image.ImageConsumer)"><!-- --></A><H3>requestTopDownLeftRightResend</H3><PRE>public void <B>requestTopDownLeftRightResend</B>(java.awt.image.ImageConsumer&nbsp;ic)</PRE><DL><DD>This method is used by an ImageConsumer to request that the ImageProducer attempt to resend the image data one more time in TOPDOWNLEFTRIGHT order so that higher quality conversion algorithms which depend on receiving pixels in order can be used to produce a better output version of the image.  The ImageProducer is free to ignore this call if it cannot resend the data in that order.  If the data can be resent, then the ImageProducer should respond by executing the following minimum set of ImageConsumer method calls: <pre>	ic.setHints(TOPDOWNLEFTRIGHT | < otherhints >);	ic.setPixels(...);	// As many times as needed	ic.imageComplete(); </pre><DD><DL><DT><B>Specified by: </B><DD><CODE>requestTopDownLeftRightResend</CODE> in interface <CODE>java.awt.image.ImageProducer</CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><CODE>ImageConsumer.setHints(int)</CODE></DL></DD></DL><HR><A NAME="redraw(quicktime.qd.Region)"><!-- --></A><H3>redraw</H3><PRE>public void <B>redraw</B>(<A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;invalidRgn)            throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method is called to redraw the QuickTime image source and update any of the current ImageConsumers with the new pixels that have been generated. This update will only be done if the redrawing flag is true.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>invalidRgn</CODE> - if null the whole image is redrawn and all of the pixels are grabbed and sent to the consumers. If not null then the qtSource invalidates the region specified, which can result in a faster draw. Also only those pixels that are within the bounds of the region are sent to the consumers.</DL></DD></DL><HR><A NAME="updateConsumers(quicktime.qd.Region)"><!-- --></A><H3>updateConsumers</H3><PRE>public void <B>updateConsumers</B>(<A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;invalidRgn)                     throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method can be called by an application to have the QTImageProducer to update the pixel data for each of the registered ImageConsumers when the source QTDrawable object has drawn. Thus an application can either explicitly draw the QTDrawable source itself then call this method or can receive notification by the QTDrawable source when it has drawn, and use this method to update the registered ImageConsumers.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>invalidRgn</CODE> - enter null to copy all pixels, or specify a region that specifies the changed pixel data, which can econimize the copying of the pixel data to only those areas that have changed.</DL></DD></DL><HR><A NAME="setRedrawing(boolean)"><!-- --></A><H3>setRedrawing</H3><PRE>public void <B>setRedrawing</B>(boolean&nbsp;redrawFlag)</PRE><DL><DD>If true then the redraw method of the object will fetch new image data from its image source.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Redrawable.html#setRedrawing(boolean)">setRedrawing</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Redrawable.html">Redrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>redrawFlag</CODE> - boolean determining whether the current image is redrawn (false) of fresh or updated image data is first retrieved (true).</DL></DD></DL><HR><A NAME="isRedrawing()"><!-- --></A><H3>isRedrawing</H3><PRE>public boolean <B>isRedrawing</B>()</PRE><DL><DD>Returns true if the image data may be altered or different upon different calls of the redraw method of the QTDrawable interface<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Redrawable.html#isRedrawing()">isRedrawing</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Redrawable.html">Redrawable</A></CODE></DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public java.awt.Dimension <B>getSize</B>()</PRE><DL><DD>This returns the rendered size of the qtSource pixel data as specified in the constructor.<DD><DL></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/QTImageProducer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/app/image/QTImageDrawer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/image/QTTransition.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>  &nbsp;&nbsp;<A HREF="QTImageProducer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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