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

📄 sprite.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/anim/Sprite.html#setImageDataIfDifferent(quicktime.util.EncodedImage)">setImageDataIfDifferent</A></B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the image data property of this sprite.</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/std/anim/Sprite.html#setImageDataSize(int)">setImageDataSize</A></B>(int&nbsp;size)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the size of the image data that the sprite is currently displaying.</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/std/anim/Sprite.html#setImageDescription(quicktime.std.image.ImageDescription)">setImageDescription</A></B>(<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;idh)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the image description property of this sprite.</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/std/anim/Sprite.html#setLayer(int)">setLayer</A></B>(int&nbsp;layer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the layer property of this sprite.</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/std/anim/Sprite.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 sets the matrix property of this sprite.</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/std/anim/Sprite.html#setVisible(boolean)">setVisible</A></B>(boolean&nbsp;visible)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the visibility property of this sprite.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A>, <A HREF="../../../quicktime/QTObject.html#toString()">toString</A></CODE></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>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="Sprite(quicktime.std.anim.SpriteWorld, quicktime.std.image.ImageDescription, quicktime.util.EncodedImage, quicktime.std.image.Matrix, boolean, int)"><!-- --></A><H3>Sprite</H3><PRE>public <B>Sprite</B>(<A HREF="../../../quicktime/std/anim/SpriteWorld.html">SpriteWorld</A>&nbsp;itsSpriteWorld,              <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;idh,              <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;imageData,              <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix,              boolean&nbsp;visible,              int&nbsp;layer)       throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This constructor creates a new Sprite object for a specified sprite world.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSpriteToolboxAPI.a.htm#29751">QuickTime::NewSprite()</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>itsSpriteWorld</CODE> - Specifies the sprite world.<DD><CODE>idh</CODE> - an ImageDescription object that describes the image.<DD><CODE>imageData</CODE> - Contains the sprite's image data.<DD><CODE>matrix</CODE> - A Matrix object describing the sprite's matrix.<DD><CODE>visible</CODE> - True if the sprite is visible.<DD><CODE>layer</CODE> - The sprite's layer.</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="getSpriteWorld()"><!-- --></A><H3>getSpriteWorld</H3><PRE>public <A HREF="../../../quicktime/std/anim/SpriteWorld.html">SpriteWorld</A> <B>getSpriteWorld</B>()</PRE><DL><DD>Return the sprite world that this sprite belongs too<DD><DL></DL></DD></DL><HR><A NAME="invalidate()"><!-- --></A><H3>invalidate</H3><PRE>public void <B>invalidate</B>()</PRE><DL><DD>This method invalidates the portion of the sprite's sprite world which is occupied by the sprite.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSpriteToolboxAPI.a.htm#11896">QuickTime::InvalidateSprite ()</a> </b><BR><BR></DL></DD></DL><HR><A NAME="hitTest(int, quicktime.qd.QDPoint)"><!-- --></A><H3>hitTest</H3><PRE>public boolean <B>hitTest</B>(int&nbsp;flags,                       <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A>&nbsp;loc)                throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method tests if a point is inside a sprite.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSpriteToolboxAPI.a.htm#17381">QuickTime::SpriteHitTest ()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flags</CODE> - Specifies the control flags.<DD><CODE>loc</CODE> - Specifies the test point.<DT><B>Returns:</B><DD>true if the point is inside the sprite, false if not.</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 method gets the matrix 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 matrix.</DL></DD></DL><HR><A NAME="setMatrix(quicktime.std.image.Matrix)"><!-- --></A><H3>setMatrix</H3><PRE>public void <B>setMatrix</B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix)               throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the matrix property of this sprite.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSpriteToolboxAPI.a.htm#22419">QuickTime::SetSpriteProperty ()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>matrix</CODE> - Specifies the matrix.</DL></DD></DL><HR><A NAME="getImageDescription()"><!-- --></A><H3>getImageDescription</H3><PRE>public <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> <B>getImageDescription</B>()                                     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.</DL></DD></DL><HR><A NAME="getInitialSize()"><!-- --></A><H3>getInitialSize</H3><PRE>public java.awt.Dimension <B>getInitialSize</B>()                                  throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>since QTJava 4.0</I><P><DD>This method returns the original width and height of the image currently being presented by the 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>a Dimension</DL></DD></DL><HR><A NAME="getOriginalSize()"><!-- --></A><H3>getOriginalSize</H3><PRE>public <A HREF="../../../quicktime/qd/QDDimension.html">QDDimension</A> <B>getOriginalSize</B>()                            throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method returns the original width and height of the image currently being presented by the 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>a QDDimension</DL></DD></DL><HR><A NAME="setImageDescription(quicktime.std.image.ImageDescription)"><!-- --></A><H3>setImageDescription</H3><PRE>public void <B>setImageDescription</B>(<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;idh)                         throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the image description property of this sprite.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSpriteToolboxAPI.a.htm#22419">QuickTime::SetSpriteProperty ()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idh</CODE> - Specifies the image description.</DL></DD></DL><HR><A NAME="getImageData()"><!-- --></A><H3>

⌨️ 快捷键说明

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