- 博客(15)
- 收藏
- 关注
转载 一篇很好的讲Thread的文章
FROM: http://www.j2me.org/yabbse/index.php?board=10;action=display;threadid=2482 J2ME and Multithreading« on: September 17, 2004, 04:40:54 am »---------------------------------------------------------
2005-12-21 13:06:00 1429
转载 各手机icon尺寸
Application Icon sizesFrom J2me wikiMany phones use many different size icons to display next to the applications name. Please add to and edit this list when you can confirm exactly what the maximum i
2005-12-21 12:55:00 2461
原创 m3g导出工具
m3gexporter:http://www.m3gexporter.comExport184:http://www.digi-element.com/Export184/registration.htmfor Maya:http://www.alias.com/eng/partners/conductors_program/plugins/m3gexport_for_maya.shtmlBlen
2005-12-17 00:33:00 1439
原创 为什么要用Python?
原因只有一个:开发效率!如果你没有接触过Python,强烈建议你抽空去了解一下。http://python.org/python的用途非常广泛,相关的资料也很多。建议找个tutorial看看。
2005-12-11 16:35:00 1307
原创 getPixel()和getRGB()的问题
用DirectGraphics.getPixels(int[] ..., TYPE_INT_xxxx_xxxx) 得到的颜色值不准确。因为nokia的手机内部使用的是TYPE_USHORT_565_RGB的格式,在getPixels(int[])时需要进行映射。更严重的是,不同位置的同种颜色的点,get出来的颜色值也可能不一样(遇到过了这种情况,但还没发现规律。如果你知道,请告诉我:)。比如白色(
2005-12-11 16:02:00 2326
原创 Nokia资源文件路径的问题
如果jar包里有一个资源文件,路径为 "/test/abc.ext"那么可以用以下方式中都可以把这个文件读进来:getClass().getResourceAsStream("/test/abc.ext");getClass().getResourceAsStream("st/abc.ext");getClass().getResourceAsStream("abc.ext");getClass(
2005-12-11 15:58:00 1093
原创 GameCanvas全屏尺寸的问题
很多人都问过我这个问题,解释了很多遍,干脆写出来。Q: 为什么我在setFullScreenMode(true)后,调用getWidth(),getHeight()得到的屏幕尺寸比实际尺寸小?A: 因为当Canvas没有被显示时,调用setFullScreenMode(true)后,并不会立即生效。在生效过后,系统会回调sizeChanged(int w, int h) 来通知屏幕大小已经改变。p
2005-12-11 15:56:00 1571 1
原创 当我们把一个Image画到它本身上面...
当我们把一个Image画到它本身上面,会出现什么情况呢?如下例子:Image img = Image.createImage(100,50);Graphics g = img.getGraphics();g.setColor(0xff0000);g.fillrect(0,0,10,10);g.drawImage(img,dx=10,dy=10,0);也许,结果和你预想的有所不同。原因很简单,由于源
2005-12-11 15:54:00 988
原创 主要机型对应的音频格式以及震动功能列表
看到一片不错文章:http://jcodeworks.com/developersfxguide.html整理了一个表格 Device Melody Wave Vibra 1 FX at a time 3650/6600/N-Gage mid0 amr - - 7650 - wav - - Moto V525/V600 mid0 amr Y - Sagem myV65/myV75 ? wav -
2005-12-11 15:51:00 1711
原创 UTF-8 Decoder & Encoder
有的手机不支持utf8. 需要时直接copy。 UTF-8 Decoder:String decode(byte[] b,int start,int len) { StringBuffer s = new StringBuffer(); int end = start + len; for (int i = start; i byte b = b[i++];
2005-12-11 15:41:00 1556
原创 用Proguard混淆后出现Preverify Error的解决办法
在proguard的参数中加上:-dontusemixedcaseclassnames因为windows文件名是大小写无关的. 如果还是不行,可以试试 -dontoptimize另外还有其他可选参数:-overloadaggressively-allowaccessmodification
2005-12-11 15:36:00 1015
原创 利用GameCanvas的offscreen_buffer
MIDP2.0增加了GameCanvas类,其中包含了一个offscreen_buffer,可以随时调用flushGraphics()来把它画到屏幕上,游戏的结构也可以变得简单一些。但是,为了移植方便,大多数时候还是用的MIDP1.0的结构。GameCanvas中是这样定义的:private Image offscreen_buffer;我们无法得到这个Image的reference,但是可以通过
2005-12-11 15:33:00 1064
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人