qtimage.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 670 行 · 第 1/3 页

HTML
670
字号
                   <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;srcRect,                   int&nbsp;colorDepth,                   int&nbsp;cType,                   <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A>&nbsp;c,                   int&nbsp;spatialQuality,                   int&nbsp;temporalQuality)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the estimated amount of time required to compress a given image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/QTImage.html#getDescription()">getDescription</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the description that describes the associated data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/QTImage.html#getImage()">getImage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the image data</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/QTImage.html#getMaxCompressionSize(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, int, int, quicktime.std.image.CodecComponent)">getMaxCompressionSize</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;src,                      <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;srcRect,                      int&nbsp;colorDepth,                      int&nbsp;quality,                      int&nbsp;cType,                      <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the maximum size an image will be after compression.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/QTImage.html#getSimilarity(quicktime.qd.QDGraphics, quicktime.qd.QDRect, quicktime.std.image.ImageDescription, quicktime.util.EncodedImage)">getSimilarity</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;src,              <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;srcRect,              <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;desc,              <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares a compressed image to a picture stored in a pixel map and returns a value indicating the relative similarity of the two images.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/QTImage.html#trim(quicktime.std.image.ImageDescription, quicktime.util.EncodedImage, quicktime.util.EncodedImage, quicktime.qd.QDRect)">trim</A></B>(<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;desc,     <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;inData,     <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;outData,     <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;trimRect)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ajusts a compressed image to the boundaries defined by a QDRect specified by your application.</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>equals, getClass, hashCode, notify, notifyAll, toString, 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="QTImage(quicktime.std.image.ImageDescription, quicktime.util.EncodedImage)"><!-- --></A><H3>QTImage</H3><PRE>public <B>QTImage</B>(<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;id,               <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;im)</PRE><DL><DD>Associate an image description with the image data that is described by the description.<DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the image description<DD><CODE>im</CODE> - the image 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="getImage()"><!-- --></A><H3>getImage</H3><PRE>public <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A> <B>getImage</B>()</PRE><DL><DD>Return the image data<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>Return the description that describes the associated data.<DD><DL></DL></DD></DL><HR><A NAME="compress(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, int, quicktime.util.EncodedImage)"><!-- --></A><H3>compress</H3><PRE>public static final <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>compress</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;src,                                              <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;srcRect,                                              int&nbsp;quality,                                              int&nbsp;cType,                                              <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data)                                       throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Compresses a single frame image that is currently stored as a pixel map. The size of the compressed image can be obtained from the ImageDescription object which is returned.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.20.htm#iqImag47">QuickTime::CompressImage</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the QDGraphics that contains the PixMap for compressing. This may NOT be null.<DD><CODE>srcRect</CODE> - a Rect defining the portion of the image to compress<DD><CODE>quality</CODE> - the desired compressed image quality<DD><CODE>cType</CODE> - a compressor type<DD><CODE>data</CODE> - a encoded image object to receive the compressed image data.                It is your program's responsibility to make sure that this                object can receive at least as much data as indicated by                 the getMaxCompressionSize method.<DT><B>Returns:</B><DD>an ImageDescription object. Your application should store this         image description with the compressed image data.</DL></DD></DL><HR><A NAME="fCompress(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, int, int, quicktime.std.image.CodecComponent, quicktime.qd.ColorTable, int, quicktime.util.EncodedImage)"><!-- --></A><H3>fCompress</H3><PRE>public static final <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>fCompress</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;src,                                               <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;srcRect,                                               int&nbsp;colorDepth,                                               int&nbsp;quality,                                               int&nbsp;cType,                                               <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A>&nbsp;c,                                               <A HREF="../../../quicktime/qd/ColorTable.html">ColorTable</A>&nbsp;clut,                                               int&nbsp;flags,                                               <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data)                                        throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Compresses a single frame image that is currently stored as a pixel map. The size of the compressed image can be obtained from the ImageDescription object which is returned.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.20.htm#iqImag51">QuickTime::FCompressImage</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - a QDGraphics that contains the PixMap for compressing. This may NOT be null.<DD><CODE>srcRect</CODE> - a QDRect defining the portion of the image to compress<DD><CODE>colorDepth</CODE> - the depth at which the image is likely to be viewed<DD><CODE>quality</CODE> - the desired compressed image quality<DD><CODE>cType</CODE> - a compressor type<DD><CODE>c</CODE> - a compressor or codec identifier<DD><CODE>clut</CODE> - a custom color lookup table<DD><CODE>flags</CODE> - flags providing further control information<DD><CODE>data</CODE> - a EncodedImage object to receive the compressed image data.                   It is your program's responsibility to make sure that this                   object can receive at least as much data as indicated by                    the getMaxCompressionSize method.<DT><B>Returns:</B><DD>an ImageDescription object. Your application should store this         image description with the compressed image data.</DL></DD></DL><HR><A NAME="convert(quicktime.std.image.ImageDescription, quicktime.util.EncodedImage, int, quicktime.qd.ColorTable, int, int, int, quicktime.std.image.CodecComponent, quicktime.util.EncodedImage)"><!-- --></A><H3>convert</H3><PRE>public static final <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>convert</B>(<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;srcDD,                                             <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;srcData,                                             int&nbsp;colorDepth,                                             <A HREF="../../../quicktime/qd/ColorTable.html">ColorTable</A>&nbsp;clut,                                             int&nbsp;accuracy,                                             int&nbsp;quality,                                             int&nbsp;cType,                                             <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A>&nbsp;codec,                                             <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;dstData)                                      throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Converts the format of a compressed image.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.20.htm#iqImag64">QuickTime::ConvertImage</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>srcDD</CODE> - the image description structure that describes the compressed image<DD><CODE>srcData</CODE> - the encoded image data to convert<DD><CODE>colorDepth</CODE> - the depth at which the recompressed image is likely to be viewed<DD><CODE>clut</CODE> - a custom color look up table<DD><CODE>accuracy</CODE> - the accuracy for the decompressed image<DD><CODE>quality</CODE> - the desired compressed image quality<DD><CODE>cType</CODE> - the compressor type<DD><CODE>codec</CODE> - a CodecComponent<DD><CODE>destData</CODE> - a EncodedImage object to receive the converted image data.                   It is your program's responsibility to make sure that this                   object can receive at least as much data as indicated by                    the getMaxCompressionSize method.<DT><B>Returns:</B><DD>an ImageDescription object defining the converted image data. Your         application should store this image description with the converted         image data.</DL></DD></DL><HR><A NAME="trim(quicktime.std.image.ImageDescription, quicktime.util.EncodedImage, quicktime.util.EncodedImage, quicktime.qd.QDRect)"><!-- --></A><H3>trim</H3><PRE>public static final void <B>trim</B>(<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;desc,                              <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;inData,                              <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;outData,

⌨️ 快捷键说明

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