📄 sprite.html
字号:
getImageData</H3><PRE>public <A HREF="../../../quicktime/util/RawEncodedImage.html">RawEncodedImage</A> <B>getImageData</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method gets the image data 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 data.</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> data) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the image data property of this sprite. It will also set the size of the image data to the size of the pointer. If the actual size of the image data is smaller than the handle you should set the imageDataSize after this call to the desired size. <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>data</CODE> - Specifies the image data.</DL></DD></DL><HR><A NAME="setImageDataIfDifferent(quicktime.util.EncodedImage)"><!-- --></A><H3>setImageDataIfDifferent</H3><PRE>public boolean <B>setImageDataIfDifferent</B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A> data) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the image data property of this sprite. It will also set the size of the image data to the size of the pointer. If the actual size of the image data is smaller than the handle you should set the imageDataSize after this call to the desired size. <P> This method can be useful to use if the SpriteWorld the Sprite is a member of should be redrawn after changing the image data of a 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>data</CODE> - Specifies the image data.<DT><B>Returns:</B><DD>a boolean which indicates if the incoming image data is different (true) than the previous data the sprite was presented.</DL></DD></DL><HR><A NAME="getVisible()"><!-- --></A><H3>getVisible</H3><PRE>public boolean <B>getVisible</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method gets the visibility 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 visibility.</DL></DD></DL><HR><A NAME="setVisible(boolean)"><!-- --></A><H3>setVisible</H3><PRE>public void <B>setVisible</B>(boolean visible) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the visibility 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>visible</CODE> - Specifies the visibility.</DL></DD></DL><HR><A NAME="getLayer()"><!-- --></A><H3>getLayer</H3><PRE>public int <B>getLayer</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method gets the layer 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 layer.</DL></DD></DL><HR><A NAME="setLayer(int)"><!-- --></A><H3>setLayer</H3><PRE>public void <B>setLayer</B>(int layer) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the layer 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>layer</CODE> - Specifies the layer.</DL></DD></DL><HR><A NAME="getGraphicsMode()"><!-- --></A><H3>getGraphicsMode</H3><PRE>public <A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A> <B>getGraphicsMode</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method gets the graphics mode 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 graphics mode.</DL></DD></DL><HR><A NAME="setGraphicsMode(quicktime.std.image.GraphicsMode)"><!-- --></A><H3>setGraphicsMode</H3><PRE>public void <B>setGraphicsMode</B>(<A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A> gMode) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the graphics mode 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>gMode</CODE> - Specifies the graphics mode.</DL></DD></DL><HR><A NAME="getImageDataSize()"><!-- --></A><H3>getImageDataSize</H3><PRE>public int <B>getImageDataSize</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method gets the size of the image data that a sprite is currently displaying. <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 size of the image data</DL></DD></DL><HR><A NAME="setImageDataSize(int)"><!-- --></A><H3>setImageDataSize</H3><PRE>public void <B>setImageDataSize</B>(int size) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method sets the size of the image data that the sprite is currently displaying. If you know the size of the image data it is recommended that you set this. <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>size</CODE> - the size of the image data</DL></DD></DL><HR><A NAME="remove()"><!-- --></A><H3>remove</H3><PRE>public void <B>remove</B>()</PRE><DL><DD>This will remove the sprite from the SpriteWorld it is contained in and destroy its internal structures. The Sprite is not usuable after this call. If you have any other java objects that refer to this sprite, they will also be unusable - so use this call with care. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSpriteToolboxAPI.a.htm#38479">QuickTime::DisposeSprite ()</a> </b><BR><BR></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Sprite.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../quicktime/std/anim/SpriteWorld.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Sprite.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -