📄 imagedescription.html
字号:
<DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/image/GraphicsExporter.html#doUseCompressor(quicktime.std.movies.AtomContainer)"><CODE>GraphicsExporter.doUseCompressor(quicktime.std.movies.AtomContainer)</CODE></A></DL></DD></DL><HR><A NAME="fromGraphicsImporter(quicktime.std.image.GraphicsImporter)"><!-- --></A><H3>fromGraphicsImporter</H3><PRE>public static <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>fromGraphicsImporter</B>(<A HREF="../../../quicktime/std/image/GraphicsImporter.html">GraphicsImporter</A> gi) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Determines the image description information. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refImporter.1e.htm#35782">QuickTime::GraphicsImportGetImageDescription</a> </b><BR><BR></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/image/GraphicsImporter.html#getImageDescription()"><CODE>GraphicsImporter.getImageDescription()</CODE></A></DL></DD></DL><HR><A NAME="fromSprite(quicktime.std.anim.Sprite)"><!-- --></A><H3>fromSprite</H3><PRE>public static <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>fromSprite</B>(<A HREF="../../../quicktime/std/anim/Sprite.html">Sprite</A> s) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method gets the image description property of this sprite. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSpriteToolboxAPI.a.htm#26871">QuickTime::GetSpriteProperty ()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the image description.<DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/anim/Sprite.html#getImageDescription()"><CODE>Sprite.getImageDescription()</CODE></A></DL></DD></DL><HR><A NAME="fromImageCompressionDialog(quicktime.std.qtcomponents.ImageCompressionDialog, quicktime.qd.QDGraphics, quicktime.qd.QDRect)"><!-- --></A><H3>fromImageCompressionDialog</H3><PRE>public static <A HREF="../../../quicktime/std/image/QTImage.html">QTImage</A> <B>fromImageCompressionDialog</B>(<A HREF="../../../quicktime/std/qtcomponents/ImageCompressionDialog.html">ImageCompressionDialog</A> icd, <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> srcRect) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Compresses a frame that is sourced by a PixMap from the supplied QDGraphics, returning the compressed data and an image description. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imImageCompDialog.18.htm#imImag22">QuickTime::SCCompressImage()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the source PixMap.<DD><CODE>srcRect</CODE> - you can specify to compress just a part of the pix map by specifying a rectangle - or pass in null to compress the entire pix map.<DT><B>Returns:</B><DD>an image data object.<DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/qtcomponents/ImageCompressionDialog.html#compressImage(quicktime.qd.QDGraphics, quicktime.qd.QDRect)"><CODE>ImageCompressionDialog.compressImage(quicktime.qd.QDGraphics, quicktime.qd.QDRect)</CODE></A></DL></DD></DL><HR><A NAME="getJavaDefaultPixelDescription(int, int)"><!-- --></A><H3>getJavaDefaultPixelDescription</H3><PRE>public static <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>getJavaDefaultPixelDescription</B>(int width, int height) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create an ImageDescription structure that describes the default Java pixel format. The Application must later set the data size that describes the image represented by this image description. This is typically the size returned from one of the Encoded image formats.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - width of the image<DD><CODE>height</CODE> - height of image</DL></DD></DL><HR><A NAME="forEffect(int)"><!-- --></A><H3>forEffect</H3><PRE>public static <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>forEffect</B>(int effectType) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create an ImageDescription for an Effect Type. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refEffects.6b.htm#11817">QuickTime::MakeImageDescriptionForEffect</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>effectType</CODE> - the effectType for which the imageDescription will be made<DT><B>Returns:</B><DD>the ImageDescription for the given Effect type.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Implementation of Cloneable Interface.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/std/movies/media/SampleDescription.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../quicktime/std/movies/media/SampleDescription.html">SampleDescription</A></CODE></DL></DD></DL><HR><A NAME="setCTable(quicktime.qd.ColorTable)"><!-- --></A><H3>setCTable</H3><PRE>public void <B>setCTable</B>(<A HREF="../../../quicktime/qd/ColorTable.html">ColorTable</A> cTable) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Update the custom color table for an image. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.20.htm#iqImag70">QuickTime::SetImageDescriptionCTable</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cTable</CODE> - a color table.</DL></DD></DL><HR><A NAME="getCTable()"><!-- --></A><H3>getCTable</H3><PRE>public <A HREF="../../../quicktime/qd/ColorTable.html">ColorTable</A> <B>getCTable</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Get the custom color table for an image. If there is no CTable this returns null. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.20.htm#iqImag73">QuickTime::GetImageDescriptionCTable</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ColorTable</DL></DD></DL><HR><A NAME="countExtensionType(int)"><!-- --></A><H3>countExtensionType</H3><PRE>public int <B>countExtensionType</B>(int idType) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Counts the number of extensions of a given type. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imImageComp.15.htm#imImag51">QuickTime::CountImageDescriptionExtensionType</a> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refImageCompMgr.14.htm#refIma325">QuickTime::CountImageDescriptionExtensionType</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idType</CODE> - A four-byte signature indentifying the type of data being counted from the ImageDescription.<DT><B>Returns:</B><DD>the number of extensions of the specified type</DL></DD></DL><HR><A NAME="getNextExtensionType()"><!-- --></A><H3>getNextExtensionType</H3><PRE>public int <B>getNextExtensionType</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the next extension type. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imImageComp.15.htm#imImag52">QuickTime::GetNextImageDescriptionExtensionType</a> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refImageCompMgr.14.htm#refIma323">QuickTime::GetNextImageDescriptionExtensionType</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>on entry, contains the starting point for the search. On return, will contain the next extension type found</DL></DD></DL><HR><A NAME="addExtension(int, quicktime.util.QTHandle)"><!-- --></A><H3>addExtension</H3><PRE>public void <B>addExtension</B>(int idType, <A HREF="../../../quicktime/util/QTHandle.html">QTHandle</A> extension) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Add the extended data of the image. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refImageCompMgr.14.htm#refIma320">QuickTime::AddImageDescriptionExtension</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idType</CODE> - A four-byte signature indentifying the type of data being added to the ImageDescription.<DD><CODE>extension</CODE> - The handle containing the extension data.</DL></DD></DL><HR><A NAME="removeExtension(int, int)"><!-- --></A><H3>removeExtension</H3><PRE>public void <B>removeExtension</B>(int idType, int index) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Removes a specified extension from an ImageDescription. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imImageComp.15.htm#imImag49">QuickTime::RemoveImageDescriptionExtension</a> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refImageCompMgr.14.htm#refIma330">QuickTime::RemoveImageDescriptionExtension</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idType</CODE> - A four-byte signature indentifying the type of data being removed from the ImageDescription.<DD><CODE>index</CODE> - The index (from 1 to the count as returned by countExtensionType) of the extension to remove..</DL></DD></DL><HR><A NAME="getExtension(int, int)"><!-- --></A><H3>getExtension</H3><PRE>public <A HREF="../../../quicktime/util/QTHandle.html">QTHandle</A> <B>getExtension</B>(int idType, int index) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Obtain the extended data for an image. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imImageComp.15.htm#imImag46">QuickTime::GetImageDescriptionExtension</a> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refImageCompMgr.14.htm#refIma327">QuickTime::GetImageDescriptionExtension</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idType</CODE> - specifies the extension's type value.<DD><CODE>index</CODE> - specifies the extension's index value.<DT><B>Returns:</B><DD>a handle to the returned data.</DL></DD></DL><HR><A NAME="newGWorld(int)"><!-- --></A><H3>newGWorld</H3><PRE>public <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>newGWorld</B>(int flags) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates an offscreen QDGraphics object from the width, height, depth, and color table of a specified image description structure. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.29.htm#iqImag224">QuickTime::NewImageGWorld</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flags</CODE> - holding graphics world flags.<DT><B>Returns:</B><DD>a QDGraphics.</DL></DD></DL><HR><A NAME="getIdSize()"><!-- --></A><H3>getIdSize</H3><PRE>public int <B>getIdSize</B>()</PRE><DL><DD>Return the total size of this structure.<DD><DL></DL></DD></DL><HR><A NAME="getCType()"><!-- --></A><H3>getCType</H3><PRE>public int <B>getCType</B>()</PRE><DL><DD>Return the compressor creator type.<DD><DL></DL></DD></DL><HR><A NAME="getVersion()"><!-- --></A><H3>getVersion</H3><PRE>public int <B>getVersion</B>()</PRE><DL><DD>Return the version of compressed data.<DD><DL></DL></DD></DL><HR><A NAME="getRevisionLevel()"><!-- --></A><H3>getRevisionLevel</H3><PRE>public int <B>getRevisionLevel</B>()</PRE><DL><DD>Return the revision level.<DD><DL></DL></DD></DL><HR><A NAME="getVendor()"><!-- --></A><H3>getVendor</H3><PRE>public int <B>getVendor</B>()</PRE><DL><DD>Return the vendor.<DD><DL></DL></DD></DL><HR><A NAME="getTemporalQuality()"><!-- --></A><H3>getTemporalQuality</H3><PRE>public int <B>getTemporalQuality</B>()</PRE><DL><DD>Return the temporal Quality.<DD><DL></DL></DD></DL><HR><A NAME="getSpatialQuality()"><!-- --></A><H3>getSpatialQuality</H3><PRE>public int <B>getSpatialQuality</B>()</PRE><DL><DD>Return the Spatial Quality.<DD><DL></DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public int <B>getWidth</B>()</PRE><DL><DD>Return the width of the source image.<DD><DL></DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public int <B>getHeight</B>()</PRE><DL><DD>Return the height of the source image.<DD><DL></DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> <B>getBounds</B>()</PRE><DL><DD>Return a QDRect that describes the width and height of the Image the description describes.<DD><DL></DL></DD></DL><HR><A NAME="getHRes()"><!-- --></A><H3>getHRes</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -