??xml version="1.0" encoding="utf-8" standalone="yes"?>re久久精品视频,性久久久久久久,亚洲乱码一区二区三区http://www.aygfsteel.com/hsith/category/10328.html碎Java,我请你喝一?........ <!-- SiteSearch Google --> <form method="get" action="http://www.google.cn/custom" target="google_window"> <table border="0" bgcolor="#ffffff"> <tr><td nowrap="nowrap" valign="top" align="left" height="32"> <a > <img src="http://www.seejava.com/view/images/logo.gif" border="0" alt="Google" align="middle"></img></a> </td> <td nowrap="nowrap"> <input type="hidden" name="domains" value="您的域名"></input> <input type="text" name="q" size="30" maxlength="255" value=""></input> <input type="submit" name="sa" value="搜烦"></input> </td></tr> <tr> <td>&nbsp;</td> <td nowrap="nowrap"> <table> <tr> <td> <input type="radio" name="sitesearch" value="" checked="checked"></input> <font size="-1" color="#000000">Web</font> </td> <td> <input type="radio" name="sitesearch" value="您的域名"></input> <font size="-1" color="#000000">您的域名</font> </td> </tr> </table> <input type="hidden" name="client" value="pub-4751025308591894"></input> <input type="hidden" name="forid" value="1"></input> <input type="hidden" name="ie" value="GB2312"></input> <input type="hidden" name="oe" value="GB2312"></input> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:50;L:http://www.ppczone.org/images/newsblobs/java.jpg;S:http://www.aygfsteel.com/hsith/;FORID:1;"></input> <input type="hidden" name="hl" value="zh-CN"></input> </td></tr></table> </form> <!-- SiteSearch Google -->zh-cnTue, 27 Feb 2007 14:29:35 GMTTue, 27 Feb 2007 14:29:35 GMT60用Sprite~写J2MEE序--W四?撞?/title><link>http://www.aygfsteel.com/hsith/archive/2006/05/03/44430.html</link><dc:creator>学二的猫</dc:creator><author>学二的猫</author><pubDate>Wed, 03 May 2006 04:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/hsith/archive/2006/05/03/44430.html</guid><wfw:comment>http://www.aygfsteel.com/hsith/comments/44430.html</wfw:comment><comments>http://www.aygfsteel.com/hsith/archive/2006/05/03/44430.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hsith/comments/commentRss/44430.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hsith/services/trackbacks/44430.html</trackback:ping><description><![CDATA[     摘要: 本文通过实例详细介绍了MDIP2.0中精灵间撞验的处理Ҏ和技巧,以及囑ֱ理器和像素U碰撞的使用?nbsp; <a href='http://www.aygfsteel.com/hsith/archive/2006/05/03/44430.html'>阅读全文</a><img src ="http://www.aygfsteel.com/hsith/aggbug/44430.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hsith/" target="_blank">学二的猫</a> 2006-05-03 12:16 <a href="http://www.aygfsteel.com/hsith/archive/2006/05/03/44430.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用Sprite~写J2MEE序--W三?用精灵实现动?/title><link>http://www.aygfsteel.com/hsith/archive/2006/04/27/43466.html</link><dc:creator>学二的猫</dc:creator><author>学二的猫</author><pubDate>Thu, 27 Apr 2006 01:19:00 GMT</pubDate><guid>http://www.aygfsteel.com/hsith/archive/2006/04/27/43466.html</guid><wfw:comment>http://www.aygfsteel.com/hsith/comments/43466.html</wfw:comment><comments>http://www.aygfsteel.com/hsith/archive/2006/04/27/43466.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hsith/comments/commentRss/43466.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hsith/services/trackbacks/43466.html</trackback:ping><description><![CDATA[     摘要: 本文通过一个例子介l了如何用Sprite实现动画QƈҎ代码q行了分D详l剖析?nbsp; <a href='http://www.aygfsteel.com/hsith/archive/2006/04/27/43466.html'>阅读全文</a><img src ="http://www.aygfsteel.com/hsith/aggbug/43466.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hsith/" target="_blank">学二的猫</a> 2006-04-27 09:19 <a href="http://www.aygfsteel.com/hsith/archive/2006/04/27/43466.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Eclipse3.1.1+EclipseME1.5+WTK2.2搭徏J2ME开发环?/title><link>http://www.aygfsteel.com/hsith/archive/2006/04/24/42845.html</link><dc:creator>学二的猫</dc:creator><author>学二的猫</author><pubDate>Mon, 24 Apr 2006 08:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/hsith/archive/2006/04/24/42845.html</guid><wfw:comment>http://www.aygfsteel.com/hsith/comments/42845.html</wfw:comment><comments>http://www.aygfsteel.com/hsith/archive/2006/04/24/42845.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hsith/comments/commentRss/42845.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hsith/services/trackbacks/42845.html</trackback:ping><description><![CDATA[ <p align="left"> <font color="#ffa500">Eclipse3.1.1+EclipseME1.5+WTK2.2搭徏J2ME开发环?br /><br /></font> <font color="#008000" size="2">׃我的EclipseME的版本已l很旧了Q今天上午从|上下了最新的EclipseME1.5。动手重新搭Z一下J2ME开发环境,发现最新的Eclipse1.5比早期版本功能强大了许多Q配|上也略有不同。不q配|的思想和流E大体相同,所?分钟内搞定。心情甚爽,惬意之余我把EclipseME1.5的配|过E写了下来,供各位遇到问题的朋友参考^.^<br /><br />1、下载安装EclipseME1.5<br />      <br />      EclipseME1.5的下载地址Q?a ><font size="3">http://jaist.dl.sourceforge.net/sourceforge/eclipseme/eclipseme.feature_1.5.0_site.zip</font></a><br />      EclipseME1.5目前只有英文版,我已l在囄上把界面中的英文做了相应译。将下蝲下来的EclipseME1.5压羃包解压,解压后会有两个文件夹features和plugins。将两个文g夹内的内容分别拷贝到Eclipse安装目录下的features和plugins目录下。这时启动Eclipse?br /><br />2、配|EclipseME1.5<br /><br />     在此Q我假设你已l安装了WTK。如果没有,请到Sun公司的网站上下蝲。Eclipse启动后点ȝ?->首选项(如图1)?br /><img height="290" alt="o_1.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10427/o_1.jpg" width="370" border="0" />Q图1Q?br />弹出Q图2Q显C的首选项对话框。如果EclipseME插g安装成功Q则在对话框左侧的树中能够看到J2ME节点。中选择J2MEq行相关配置?br /><br />Step 1、设|WTK根目?br />              点击左侧树中的“J2ME”,出现如下囄面。这里唯一需要配|的是WTK     Root。在q一中要填入WTK的安装根目录。例如,我的WTK安装在D:\WTK22。其余的使用默认卛_。值得一提的是Antenna JARq一VAntenna JAR不是一个必NQ但是用Antenna Jar能够~写Ant文gQ轻松打包J2MEE序。(有时间我会介l如何用Antenna JAR~写打包J2MEE序的Ant脚本。)<br /><img height="525" alt="o_2.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10427/o_2.jpg" width="711" border="0" /><br />Q图2Q?br /><br />Step 2、设备管?br />              点击“Device Management?出现Q图3Q配|界面。点几ZBrowse”,选择WTK安装目录下的bin文g夏V例如我的bin文g夹的路径为D:\WTK22\bin。然后再单击“Refresh”。插件会自动搜烦出可用的讑֤?br /><img height="408" alt="o_3.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10427/o_3.jpg" width="733" border="0" /><br />Q图3Q?br />完成上面工作后,可以说你的J2ME环境基本上就搭徏好了。你可以在上面新建、编译、测试、打包你的程序了。怎么L单吧Q但是有一个问题,我们没有讄h器,不能使用“Create Obfuscated Package”。؜淆器对减Jar包大,防止E序被反~译很有用,因此很有必要在J2ME开发环境中讄h器?br /><img height="204" alt="4.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10427/4.jpg" width="430" border="0" />Q图4Q?br /><br />Step 3、设|؜淆器Proguard <br /></font> <font color="#008000" size="2">             讄前请先下载Proguard。目前Proguard的最新版本是3.6BetaQ?.0正在开发中Q。我用的?.5。你可以在此下蝲刎ͼEclipseME单击“Obfuscation”,出现下图界面。在“Progurd Root Directory”填入Proguard的安装目录?br /><img height="525" alt="o_5.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10427/o_5.jpg" width="623" border="0" />Q图5Q?br /><br />好了Q这样你的J2ME开发环境就搭徏好了Q你可以开始用Eclipseq行J2ME开发了。当然我们的EclipseME之旅才刚刚开始,更多的设|和使用Ҏ大家以后在用中慢慢探烦吧?/font> </p> <img src ="http://www.aygfsteel.com/hsith/aggbug/42845.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hsith/" target="_blank">学二的猫</a> 2006-04-24 16:33 <a href="http://www.aygfsteel.com/hsith/archive/2006/04/24/42845.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用Sprite~写J2MEE序--W二?Sprite?/title><link>http://www.aygfsteel.com/hsith/archive/2006/04/22/42467.html</link><dc:creator>学二的猫</dc:creator><author>学二的猫</author><pubDate>Sat, 22 Apr 2006 03:52:00 GMT</pubDate><guid>http://www.aygfsteel.com/hsith/archive/2006/04/22/42467.html</guid><wfw:comment>http://www.aygfsteel.com/hsith/comments/42467.html</wfw:comment><comments>http://www.aygfsteel.com/hsith/archive/2006/04/22/42467.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hsith/comments/commentRss/42467.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hsith/services/trackbacks/42467.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="center"> <font size="4"> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">W?/span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">2</span> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1">   </span>Sprite</span> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span> </font> <font size="4"> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /><br /></span> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">概述</span> </font> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> <font color="#3366ff"> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite(</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">_</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">本质上其实就?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">MIDP</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">囑փ。事实上Q看?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">的构造函Cp发现Q?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">3</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">个构造函C有两个需要传q一个图像对?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(Image Object)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">Q而第三个构造函数是通过一个已l存在的</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">构?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> </font> <font color="#3366ff"> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br />Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">3</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">个构造函敎ͼ</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> </font> <font color="#3366ff"> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-font-kerning: 0pt; mso-fareast-font-family: Wingdings"> <span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'"><font size="3">    </font></span></span> </span> <strong> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Courier; mso-bidi-font-family: Courier; mso-font-kerning: 0pt">Sprite(Image image)</span> </strong> <strong> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">: </span> </strong> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">构造一个不会动?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">Q?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> </font> <font color="#3366ff"> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-font-kerning: 0pt; mso-fareast-font-family: Wingdings"> <span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'"><font size="3">    </font></span></span> </span> <strong> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Courier; mso-bidi-font-family: Courier; mso-font-kerning: 0pt">Sprite(Image image, int frameWidth, int frameHeight)</span> </strong> <strong> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">:</span> </strong> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-bidi-font-weight: bold">创徏一个可以动?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt; mso-bidi-font-weight: bold">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-bidi-font-weight: bold">Q?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> </font> <font color="#3366ff"> <font size="3"> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-font-kerning: 0pt; mso-fareast-font-family: Wingdings"> <span style="mso-list: Ignore"> <font size="3">l</font> <span style="FONT: 7pt 'Times New Roman'"> <font size="3">   </font>  </span> </span> </span> <strong> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Courier; mso-bidi-font-family: Courier; mso-font-kerning: 0pt">Sprite(Sprite s)</span> </strong> <strong> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">: </span> </strong> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">通过一个已l存在的</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">构?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> </font> </font> <font size="4"> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <br />_</span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">VS</span> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">囑փ</span> </font> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> </span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> <font color="#3366ff"> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">_负责一个对象的可视化呈现。例如,你可以把</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">中的每一q图像创建成一个精c?/span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> </font> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> <font color="#3366ff" size="3"> <img title="?" height="56" alt="o_1.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10403/o_1.jpg" width="257" border="0" /> <font size="2">Q图1Q精灵D?/font> </font> </span> </p> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="center"> <br />_的变?/p> </span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> <font color="#3366ff"> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">管_是从囑փ创徏来的Q但是与单纯的图像相比,_表现多附件的功能。例如,_提供了变?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(transformations)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">功能――允怽旋{和镜像一个精c?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">展示了对_的几个变换:<br /></span> </font> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> <font color="#3366ff" size="3"> <img height="360" alt="o_2.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10403/o_2.jpg" width="287" align="center" border="0" /> <font size="2">Q图2Q精늚变换</font> </font> </span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <br />_的参考像?/span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> <font color="#3366ff"> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-bidi-font-style: italic">除了变换之外Q精늚另一重要特点是参考像素这个概c?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt; mso-bidi-font-style: italic"> </span> </font> <font color="#3366ff"> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">默认情况下,_的参考像素被定义?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(0,0)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">q个位置Q如</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">所C:</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /> </span> </font> <font size="3"> <font color="#3366ff"> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"> <img height="94" alt="o_3.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10403/o_3.jpg" width="220" border="0" /> <font size="2">(</font> </span> <font size="2"> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?</span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">)</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">参考像?/span> </font> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"> <br /> </span> </font> </font> <font size="3"> <font color="#3366ff"> <strong> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">注意Q?/span> </strong> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">_周围的E灰色框只是ؓ了清晰地表现_的轮?/span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"> <br /> <br /> </span> </font> </font> <font size="3"> <font color="#3366ff"> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">当你试着精灉||在某个特定位置但却没有参考点Ӟ你就会发C用参考像素的好处了。D个例子来_?/span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">(</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?</span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">)</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">中,要把一个音W的?/span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">(</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">音符的圆形部?/span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">)</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">攄在线上,另一个放|在两条U之_在没有逻辑参考点的情况下Q如果你愿意Q可以用参考像素位|?/span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">(0,0)</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"> <br /> <img height="100" alt="o_4.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10403/o_4.jpg" width="249" border="0" /> </span> </font> </font> <font size="2"> <span lang="EN-US"> <font face="Times New Roman" color="#3366ff">(</font> </span> <font color="#3366ff"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?</span> <span lang="EN-US"> <font face="Times New Roman">)</font> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">改变_的位|?/span> </font> </font> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> <font color="#3366ff" size="3">下一板块会演示如何用参考像素精的解决q一问题?br /><br /></font> </span> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">改变参考像素位|?/span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> <font color="#3366ff"> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">让我们改变音W的参考像素位|。如</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">??/span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">)</span> <span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">所C:</span> <span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /> <img height="87" alt="o_5.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10403/o_5.jpg" width="264" border="0" /> </span> </font> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">(</font> </span> <font color="#3366ff"> <font size="3"> <span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?</span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">)</span> <span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">新参考像?/span> </font> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <font size="3"> <br /> </font> </span> </font> <font color="#3366ff"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">采用新的参考像素位|,把音W放CU谱</span> <span lang="EN-US"> <font face="Times New Roman">(</font> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">乐谱中横U的专业名称</span> <span lang="EN-US"> <font face="Times New Roman">)</font> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的适当位置Q更加直观?br /><img height="102" alt="o_6.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10403/o_6.jpg" width="417" border="0" /></span> </font> <font size="2"> <span lang="EN-US"> <font face="Times New Roman" color="#3366ff">(</font> </span> <font color="#3366ff"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?</span> <span lang="EN-US"> <font face="Times New Roman">)</font> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用参考像素改变位|?br /><br /><br /></span> </font> </font> <span style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">_动画</span> <span lang="EN-US" style="FONT-SIZE: 18pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /><font color="#3366ff" size="3">?/font><font color="#3366ff"><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">囑փ相比Q精늚另一个好处就是能够实现动甅R用带有多帧画面的_</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">(</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">如图</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">7</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">所C?/span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">)</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">Q实现动d成了单地调用适当的方法,q些Ҏ用于理每一个画面按序昄出来从而Ş成动L果的Ҏ<br /><img height="88" alt="o_7.jpg" src="http://www.aygfsteel.com/images/blogjava_net/hsith/10403/o_7.jpg" width="299" border="0" /></span></font></span> <font size="2"> <span lang="EN-US"> <font face="Times New Roman" color="#3366ff">(</font> </span> <font color="#3366ff"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/span> <span lang="EN-US"> <font face="Times New Roman">7)</font> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">_?/span> </font> </font> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <font size="3"> <font color="#3366ff"> <strong> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">注意Q?/span> </strong> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">虽然囑փ也可以包含多帧画面,但是_拥有独特的能够简单有效地实现动画的方法。在下一章你看到用_实现动画的全部细节?br /></span> </font> </font> <span style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <br />创徏_</span> <span lang="EN-US" style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> <font color="#3366ff"> <font color="#3366ff"> <span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">接下来,你会看到一段代码。这D实例代码承自</span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt">Sprite</span> <span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">c,它将向你展示如何创徏一个精灵:</span> </font> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <br /></span> </font> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff"> <br />/*-------------------------------------------------- <br /></font> </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">* AppleSprite.java <br /></font> </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">*-------------------------------------------------*/ <br /></font> </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">import javax.microedition.lcdui.game.*; <br /></span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">import javax.microedition.lcdui.*; <br /><br /></span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">public class AppleSprite extends Sprite </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">{ <br /></span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">   public AppleSprite(Image image) </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">{ <br /></font> </span> <font color="#00ff00"> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">   <font color="#339966">//</font><font color="#339966">Sprite</font></span> <span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#339966">cȝ构造函?/font> </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#339966"> <br /></font> </span> </font> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">   super(image); <br /></font> </span> <font color="#3366ff"> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">   <font color="#339966">// </font></span> <font color="#339966"> <span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">讄在画布上的位|?/span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">...</span> <span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">后面详l介l?/span> </font> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <br /></span> </font> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">   setRefPixelPosition(146, 35); <br /></font> </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">   }<br /></font> </span> <span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <font color="#3366ff">} <p><font color="#3366ff"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">假设你有一张苹果的</span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt">PNG</span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">囄Q参照下面的代码p创徏一个精늚实例了:</span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt">  <br /></span></font><font color="#3366ff"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">private AppleSprite spApple; // </span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">Ҏ_</span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <br /></span></font><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"><font color="#3366ff">   ... <br /></font></span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"><font color="#3366ff">   try </font></span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"><font color="#3366ff">{ <br /></font></span><font color="#3366ff"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">   // </span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">非动ȝ?/span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"> <br /></span></font><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"><font color="#3366ff">   spApple = new AppleSprite(Image.createImage("/apple.png")); <br /></font></span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"><font color="#3366ff">   }catch (Exception e) </font></span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"><font color="#3366ff">{ <br /></font></span><font color="#3366ff"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">      System.out.println("</span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">不能d</span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">PNG</span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">文g</span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">"); <br /></span></font><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-font-kerning: 0pt"><font color="#3366ff">   } <p><font color="#3366ff"><strong><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">注意Q?/span></strong><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt">PNG</span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">格式?/span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt">J2ME/MIDP</span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">支持的唯一的图像格式。要获得更多关于</span><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: Arial; mso-font-kerning: 0pt">PNG</span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">文g的信息,误?/span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><a >http://www.libpng.org/pub/png/</a></span><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt">?/span><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"></span></font></p></font></span></p><p></p><p></p><p><strong>(本文译自John Muchow?em>Work with sprites in J2ME?/em>)</strong></p></font> </span> </p> <img src ="http://www.aygfsteel.com/hsith/aggbug/42467.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hsith/" target="_blank">学二的猫</a> 2006-04-22 11:52 <a href="http://www.aygfsteel.com/hsith/archive/2006/04/22/42467.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用Sprite~写J2MEE序--W一?开?/title><link>http://www.aygfsteel.com/hsith/archive/2006/04/22/42460.html</link><dc:creator>学二的猫</dc:creator><author>学二的猫</author><pubDate>Sat, 22 Apr 2006 03:19:00 GMT</pubDate><guid>http://www.aygfsteel.com/hsith/archive/2006/04/22/42460.html</guid><wfw:comment>http://www.aygfsteel.com/hsith/comments/42460.html</wfw:comment><comments>http://www.aygfsteel.com/hsith/archive/2006/04/22/42460.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hsith/comments/commentRss/42460.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hsith/services/trackbacks/42460.html</trackback:ping><description><![CDATA[ <div align="center"> <strong> <font color="#ff6600" size="4">W一章 ?开?/font> </strong> <br /> </div> <p> <strong> <font size="4">关于本教E?br /></font> </strong> <font color="#3366ff" size="3">最新的MDIP2.0增加了对_(Sprite)的支持。精灵就是一些拥有附加属性和Ҏ的图像,能够L的实现动甅R变换(旋{、镜像)和碰撞检验。在本教E中Q你探索非动画_Qnonanimated spritesQ和动画_Qanimated spritesQ的区别Q学习用参考像素进行精늚布局q且讨论如何验精灵间的碰撞?br /><br />学习本教E期_你将创徏两个MIDletQJ2ME应用E序Q。第一个将展示如何创徏q显CZ个动ȝ灵;而另一个MIDlet是一个简单的游戏Q用它来阐述q行中的撞验?br /><br />当你完成本教E时Q你具备将_q用C的J2ME应用E序中所必需的基本知识?br /></font> <font size="4"> <br /> <strong>软g要求<br /></strong> <font color="#3366ff" size="3">1、Java Development Kit (JDK):JDK提供了Java源代码编译器和创建Java归档文gQJarQ的工具。当需要与Wireless Toolkit 2.0一起用时Q你需要下载JDK1.4版或更高版本。你可以?/font> <a > <font color="#3366ff" size="3">http://java.sun.com/products/jdk/1.4.1</font> </a> <font color="#3366ff" size="3">扑ֈJDK1.4?br /><br />2、Wireless Toolkit (WTK):Sun公司的Wireless Toolkit 是J2ME MIDlet的集成开发环境。下载下来的WTK包括一个集成开发环境(IDEQ和创徏MIDlet所需要的库。WTK的下载地址是:</font> <a > <font color="#3366ff" size="3">http://java.sun.com/products/j2mewtoolkit</font> </a> <br /> <br /> <strong>安装软g<br /></strong> </font> <font color="#3366ff" size="3">JDK的安?br />使用JDK安装文g安装JDK。你可以使用默认目录也可以自己制定目录。如果你选择指定目录Q那么请在安装的地方做个标记。Wireless Toolkit安装q程中会试着定位Java虚拟机(JVMQ。如果找不到Java虚拟机,Wireless Toolkit安装E序会提C你输入JDK安装路径?br /><br />Wireless ToolkitQWTKQ?br />Wireless Toolkit包含在一个单独的可执行可执行文g中。运行这个可执行文g开始安装Wireless Toolkit。徏议你使用默认的安装\径。然而如果你不用默认目录Q请保你选择的目录不包括M间隔?font size="+0"><br /><br /><br /><strong>(本文译自John Muchow?em>Work with sprites in J2ME?/em>)</strong></font></font> </p> <img src ="http://www.aygfsteel.com/hsith/aggbug/42460.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hsith/" target="_blank">学二的猫</a> 2006-04-22 11:19 <a href="http://www.aygfsteel.com/hsith/archive/2006/04/22/42460.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">׶</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̽</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ͨμ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">ٰ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Զ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">γ</a>| <a href="http://" target="_blank">տ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">޵</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank">ϰ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">³ƶ</a>| <a href="http://" target="_blank">߶</a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank">差</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>