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

📄 imagepresenter.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/ImagePresenter.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/ImagePresenter.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/ImagePresenter.html#getOriginalSize()">getOriginalSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the original size before the transformations specified in the returned matrix are applied.</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/ImagePresenter.html#isRedrawOptimised()">isRedrawOptimised</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current state of the optimisation for drawing flag.</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/ImagePresenter.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/ImagePresenter.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/ImagePresenter.html#removeImageData()">removeImageData</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method removes the previously set encoded image data and description from the ImagePresenter and will remove it from any destination QDGraphics it is currently drawing into.</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/ImagePresenter.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/ImagePresenter.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/ImagePresenter.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/ImagePresenter.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/ImagePresenter.html#setImageData(quicktime.util.EncodedImage)">setImageData</A></B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;ei)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If you have already set the image data and you have image data in the same general parameters as previously set (ie.</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/ImagePresenter.html#setImageData(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)">setImageData</A></B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data,             <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;desc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current image data and description.</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/ImagePresenter.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/ImagePresenter.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/ImagePresenter.html#setRedrawOptimised(boolean)">setRedrawOptimised</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the optimisation for redraw flag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a String representation of this 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, wait, wait, wait</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="ImagePresenter(quicktime.qd.QDRect)"><!-- --></A><H3>ImagePresenter</H3><PRE>public <B>ImagePresenter</B>(<A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;initialSize)</PRE><DL><DD>Creates an emtpy ImagePresenter object - you will need to set the image data and description before this object is usable.</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="fromFile(quicktime.io.QTFile)"><!-- --></A><H3>fromFile</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromFile</B>(<A HREF="../../../quicktime/io/QTFile.html">QTFile</A>&nbsp;qtFile)                               throws java.io.IOException,                                      <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from a file.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>qtFile</CODE> - the QTFile.</DL></DD></DL><HR><A NAME="fromGraphicsImporter(quicktime.std.image.GraphicsImporter)"><!-- --></A><H3>fromGraphicsImporter</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromGraphicsImporter</B>(<A HREF="../../../quicktime/std/image/GraphicsImporter.html">GraphicsImporter</A>&nbsp;importer)                                           throws java.io.IOException,                                                  <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from a GraphicsImporter.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>importer</CODE> - the GraphicsImporter object.</DL></DD></DL><HR><A NAME="fromGraphicsImporterDrawer(quicktime.app.image.GraphicsImporterDrawer)"><!-- --></A><H3>fromGraphicsImporterDrawer</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromGraphicsImporterDrawer</B>(<A HREF="../../../quicktime/app/image/GraphicsImporterDrawer.html">GraphicsImporterDrawer</A>&nbsp;imageFile)                                                 throws java.io.IOException,                                                        <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from an GraphicsImporterDrawer object.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>imageFile</CODE> - the image file object</DL></DD></DL><HR><A NAME="fromImageSpec(quicktime.app.image.ImageSpec)"><!-- --></A><H3>fromImageSpec</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromImageSpec</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)                                    throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from an ImageSpec object.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image<DD><CODE>nth</CODE> - the index into the ImageDataSequence object of the image data that should be used</DL></DD></DL><HR><A NAME="fromImageSequence(quicktime.app.image.ImageDataSequence, int)"><!-- --></A><H3>fromImageSequence</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromImageSequence</B>(<A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A>&nbsp;image,                                               int&nbsp;nth)                                        throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from nth first image of any ImageDataSequence object<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image<DD><CODE>nth</CODE> - the index into the ImageDataSequence object of the image data that should be used</DL></DD></DL>

⌨️ 快捷键说明

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