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

📄 imagepresenter.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<HR><A NAME="fromGWorld(quicktime.qd.QDGraphics)"><!-- --></A><H3>fromGWorld</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromGWorld</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;grafPort)                                 throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from the PixMap of the QDGraphics object. It will not be compressed.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>grafPort</CODE> - the grafPort that will be used to create the ImagePresenter object from.</DL></DD></DL><HR><A NAME="fromGWorld(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, int, int, quicktime.std.image.CodecComponent)"><!-- --></A><H3>fromGWorld</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromGWorld</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;port,                                        <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;rect,                                        int&nbsp;colorDepth,                                        int&nbsp;quality,                                        int&nbsp;codecType,                                        <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A>&nbsp;codec)                                 throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from PixMap source, bounds QDRect, color depth, compression quality, codec type,  and codec component. This will circumvent the normal restrictions placed on an ImagePresenter in that the data will be kept in the format you specify, even if that is not an optimal format for rendering. <br><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - a QDGraphics object from which the PixMap will be used.<DD><CODE>rect</CODE> - the QDRect object - this may not be null<DD><CODE>colorDepth</CODE> - the int value.<DD><CODE>quality</CODE> - the int value.<DD><CODE>codecType</CODE> - the int value.<DD><CODE>codec</CODE> - the CodecComponent object.</DL></DD></DL><HR><A NAME="fromPict(quicktime.qd.Pict)"><!-- --></A><H3>fromPict</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromPict</B>(<A HREF="../../../quicktime/qd/Pict.html">Pict</A>&nbsp;p)                               throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from a Pict object that is stored in memory.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the pict handle</DL></DD></DL><HR><A NAME="fromQTImage(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)"><!-- --></A><H3>fromQTImage</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>fromQTImage</B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data,                                         <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;desc)                                  throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This creates an ImagePresenter object from raw image data and ImageDescription.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the image data.<DD><CODE>desc</CODE> - the ImageDescription object.</DL></DD></DL><HR><A NAME="setImageData(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)"><!-- --></A><H3>setImageData</H3><PRE>public void <B>setImageData</B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data,                         <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;desc)                  throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets the current image data and description.  If the data is specified then it may be recompressed if the format of the data is  not optimal for redrawing and the redraw optimised flag is set to true. If you pass in null for the EncodedImage argument then the application must call the setImageData (EncodedImage) method after this to ensure that the ImagePresenter has both required data and description. The data formats that are not recompressed are any known pixel format (which includes the rawCodecType), animation, vector or QuickDraw formats.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/ImageSettable.html#setImageData(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)">setImageData</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/ImageSettable.html">ImageSettable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the new image data for display or null to allow the application to keep the data in its preferred format.<DD><CODE>desc</CODE> - describes the format of the image data - this may NOT be null.</DL></DD></DL><HR><A NAME="setImageData(quicktime.util.EncodedImage)"><!-- --></A><H3>setImageData</H3><PRE>public void <B>setImageData</B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;ei)                  throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>If you have already set the image data and you have image data in the same general parameters as previously set (ie. the same ImageDescription will describe the data) then this call can be used to just replace the changed image data.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ei</CODE> - the new encoded image data</DL></DD></DL><HR><A NAME="setRedrawOptimised(boolean)"><!-- --></A><H3>setRedrawOptimised</H3><PRE>public void <B>setRedrawOptimised</B>(boolean&nbsp;flag)</PRE><DL><DD>Returns the state of the optimisation for redraw flag. If true, then when image data is set the ImagePresenter may decompress the image data to a format that is optimised for performance at the expense of possibly greater memory usage. If false, then setting the image data will not decompress the image data. The default is true. Changing this flag will not alter the current image data format, it only effects consequent calls to the setImageData (EncodedImage, ImageDescription) calls.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new setting.</DL></DD></DL><HR><A NAME="isRedrawOptimised()"><!-- --></A><H3>isRedrawOptimised</H3><PRE>public boolean <B>isRedrawOptimised</B>()</PRE><DL><DD>Returns the current state of the optimisation for drawing flag.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="removeImageData()"><!-- --></A><H3>removeImageData</H3><PRE>public void <B>removeImageData</B>()                     throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>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.<DD><DL></DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>getDescription</B>()</PRE><DL><DD>This method should return an ImageDescription that describes the image data that the class contains.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/ImageSpec.html#getDescription()">getDescription</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ImageDescription of an Image</DL></DD></DL><HR><A NAME="getDSequence()"><!-- --></A><H3>getDSequence</H3><PRE>public <A HREF="../../../quicktime/std/image/DSequence.html">DSequence</A> <B>getDSequence</B>()</PRE><DL><DD>Returns the DSequence that is used by the ImagePresenter. This  object may be null if the ImagePresenter is not currently attached to a valid destination QDGraphics. The application should not cache this sequence object for any length of time - as if the destination QDGraphics is changed the DSequence is thrown away and a new one is created.<DD><DL></DL></DD></DL><HR><A NAME="getClip()"><!-- --></A><H3>getClip</H3><PRE>public <A HREF="../../../quicktime/qd/Region.html">Region</A> <B>getClip</B>()               throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns a region that defines the current clipping region for the object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#getClip()">getClip</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the clipping region</DL></DD></DL><HR><A NAME="setClip(quicktime.qd.Region)"><!-- --></A><H3>setClip</H3><PRE>public void <B>setClip</B>(<A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;reg)             throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets a region that will define the clipping region for the object<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#setClip(quicktime.qd.Region)">setClip</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>reg</CODE> - the new clipping region</DL></DD></DL><HR><A NAME="addedTo(java.lang.Object)"><!-- --></A><H3>addedTo</H3><PRE>public void <B>addedTo</B>(java.lang.Object&nbsp;interest)</PRE><DL><DD>This method is called by the specified object when the instance of  the class that implements this interface is added to the object that is the source of the interest.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#addedTo(java.lang.Object)">addedTo</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that is to be the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="removedFrom(java.lang.Object)"><!-- --></A><H3>removedFrom</H3><PRE>public void <B>removedFrom</B>(java.lang.Object&nbsp;interest)</PRE><DL><DD>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.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#removedFrom(java.lang.Object)">removedFrom</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that was the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="getMatrix()"><!-- --></A><H3>getMatrix</H3><PRE>public <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A> <B>getMatrix</B>()                 throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This will return the client's current display transformations <br><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Transformable.html#getMatrix()">getMatrix</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the display transformations of the client</DL></DD></DL><HR><A NAME="setMatrix(quicktime.std.image.Matrix)"><!-- --></A><H3>setMatrix</H3>

⌨️ 快捷键说明

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