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

📄 qtimagedrawer.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#getInitialSize()">getInitialSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>since QTJava 4.0</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#getMatrix()">getMatrix</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will return the client's current display transformations <br></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/qd/QDDimension.html">QDDimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#getOriginalSize()">getOriginalSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>since QTJava 4.0</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/app/image/Paintable.html">Paintable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#getPaintable()">getPaintable</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Paintable object that is the client of the QTImageDrawer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#getSize()">getSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current size of the offscreen Image that the Painter object will draw into.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#isRedrawing()">isRedrawing</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the image data may be altered or different upon different calls of the redraw method of the QTDrawable interface</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#isSingleFrame()">isSingleFrame</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the Redrawable only has a single frame to render and thus will never need to re-acquire or redraw its image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/qd/Region.html">Region</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#prepaint()">prepaint</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used to paint the painter object's image and to grab the resulting pixels into a format that the QTImageDrawer can then draw using the quicktime drawing commands.</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="../../../quicktime/app/image/QTImageDrawer.html#redraw(quicktime.qd.Region)">redraw</A></B>(<A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;invalidRgn)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QTCanvas calls this method when the client should redraw itself.</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="../../../quicktime/app/image/QTImageDrawer.html#removedFrom(java.lang.Object)">removedFrom</A></B>(java.lang.Object&nbsp;interest)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is called by the specified object when the instance of  the class that implements this interface is removed from the object that is the source of the interest.</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="../../../quicktime/app/image/QTImageDrawer.html#removedFromCompositor(quicktime.app.anim.SWCompositor)">removedFromCompositor</A></B>(<A HREF="../../../quicktime/app/anim/SWCompositor.html">SWCompositor</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When a dynamic image class is removed from a SWCompositor this method is called to allow the class to cleanup any of the invalidation processes it had established in the addedToCompositor call.</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="../../../quicktime/app/image/QTImageDrawer.html#setClip(quicktime.qd.Region)">setClip</A></B>(<A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;reg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a region that will define the clipping region for the object</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="../../../quicktime/app/image/QTImageDrawer.html#setDisplayBounds(quicktime.qd.QDRect)">setDisplayBounds</A></B>(<A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;bounds)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QTCanvas calls this method when it needs to tell the client to adjust its location, width and/or height.</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="../../../quicktime/app/image/QTImageDrawer.html#setGraphicsMode(quicktime.std.image.GraphicsMode)">setGraphicsMode</A></B>(<A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A>&nbsp;mode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This sets the GraphicsMode for the Compositor when it draws its composited  contents to its destination QDGraphics (typically the QTCanvas).</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="../../../quicktime/app/image/QTImageDrawer.html#setGWorld(quicktime.qd.QDGraphics)">setGWorld</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;cgp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QTCanvas calls this method to give the client the QDGraphics object it should  use to do its drawing.</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="../../../quicktime/app/image/QTImageDrawer.html#setLocation(int, int)">setLocation</A></B>(int&nbsp;x,            int&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convenience method to set the position of a QTDrawable object.</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="../../../quicktime/app/image/QTImageDrawer.html#setMatrix(quicktime.std.image.Matrix)">setMatrix</A></B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method assigns a mapping matrix to the sequence.</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="../../../quicktime/app/image/QTImageDrawer.html#setRedrawing(boolean)">setRedrawing</A></B>(boolean&nbsp;redrawFlag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true then the redraw method of the object will fetch new image data from its image source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/QTImageDrawer.html#toImagePresenter()">toImagePresenter</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will return an ImagePresenter object from the drawing that has been done by the Paintable object.</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.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="kMultiFrameRetain"><!-- --></A><H3>kMultiFrameRetain</H3><PRE>public static final int <B>kMultiFrameRetain</B></PRE><DL><DD>This flag modifies the behaviour of the multiFrame flag in that  it will retain resources that are used between invocations of the  attached Paintables paint method. This setting is useful when using the QTImageDrawer frequently to produce of modify pixels, however if this production is only done spasmodically then the kMultiFrame flag is better used to ensure that objects are not held for no good reason.</DL><!-- ========= 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="QTImageDrawer(quicktime.app.image.Paintable, java.awt.Dimension, int)"><!-- --></A><H3>QTImageDrawer</H3><PRE>public <B>QTImageDrawer</B>(<A HREF="../../../quicktime/app/image/Paintable.html">Paintable</A>&nbsp;painter,                     java.awt.Dimension&nbsp;initialSize,                     int&nbsp;isSingleFrame)</PRE><DL><DD>This creates the QTImageDrawer object which is the parent container of the Paintable object. You supply an initial size - which defines the drawing area that the paintable object has to draw into. Once created a paintable object's  drawing area cannot be resized as far as its relationship to its parent container.  If the display area of the QTImageDrawer is changed then the iamge that the Paintable object paints will be scaled accordingly.<DD><DL><DT><B>Parameters:</B><DD><CODE>painter</CODE> - the java object that will paint into the space reserved by the QTImageDrawer<DD><CODE>initialSize</CODE> - the size (with origin of 0, 0) that defines the drawing size available to the painter.<DD><CODE>isSingleFrame</CODE> - if the kSingleFrame flag is set the Redrawable will capture the  the results of the Paintable's paint call and then discard all of the resources required to call its Paintable (and the Paintable itself). In this case the Paintable's paint method will only be called once. If kSingleFrame is not set the Paintable's paint call will be called whenever redraw() is called and the isRedrawing flag is true.</DL></DD></DL><HR><A NAME="QTImageDrawer(java.awt.Image)"><!-- --></A><H3>QTImageDrawer</H3><PRE>public <B>QTImageDrawer</B>(java.awt.Image&nbsp;image)              throws <A HREF="../../../quicktime/app/QTAppException.html">QTAppException</A></PRE><DL><DD>This creates a QTImageDrawer that will grab the pixel data that results from drawing the specified image at its full size. Only single frame java.awt.Images are supported.<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the java.awt.Image to capture. The size of this image must be known before this constructor can be used.<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/image/JImagePainter.html"><CODE>JImagePainter</CODE></A></DL></DD></DL><HR><A NAME="QTImageDrawer(java.awt.Image, java.awt.Dimension)"><!-- --></A><H3>QTImageDrawer</H3><PRE>public <B>QTImageDrawer</B>(java.awt.Image&nbsp;image,                     java.awt.Dimension&nbsp;initialSize)</PRE><DL><DD>This creates a QTImageDrawer that will grab the pixel data that results from a scaled drawing of the specified image at the specified size. Only single frame java.awt.Images are supported.<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the java.awt.Image to capture.<DD><CODE>initialSize</CODE> - the scaled drawing size of the image.<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/image/JImagePainter.html"><CODE>JImagePainter</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="getPaintable()"><!-- --></A><H3>getPaintable</H3><PRE>public <A HREF="../../../quicktime/app/image/Paintable.html">Paintable</A> <B>getPaintable</B>()</PRE><DL><DD>Returns the Paintable object that is the client of the QTImageDrawer. This call may return null if the QTImageDrawer is a singleFrame based capture and the single frame has already been captured.<DD><DL></DL>

⌨️ 快捷键说明

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