您的位置:首页 > 其它

j2me - graphic [小糊涂的灵感]

2004-10-20 10:38 274 查看
graphic canvas

    ---image items

transparent.

dubble -buffer

shownotify ?

the
getGameAction() method so that, for example, the expression (getGameAction(keyCode)
== Canvas.LEFT) can be used to check whether the key that corresponds to LEFT has
been pressed (or released).

int width = getWidth( );

int height = getHeight( );

// Fill the background using black

g.setColor(0);

g.fillRect(0, 0, width, height);

// Load an image from the MIDlet resources

if (image == null) {

try {

image = Image.createImage("/ora/ch5/resources/earth.png");

} catch (IOException ex) {

g.setColor(0xffffff);

g.drawString("Failed to load image!", 0, 0, Graphics.TOP |

Graphics.LEFT);

return;

}

}

setcommandlistener

imageitem 是特定的?

canvas -<  keypressed
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: