?? myimage.java
字號:
?//import com.nokia.mid.ui.DirectGraphics;
//import com.nokia.mid.ui.DirectUtils;
//import javax.microedition.lcdui.Graphics;
//import javax.microedition.lcdui.Image;
public class MyImage
{
// private short data[];
//
// public MyImage(Image img, int x, int y)
// {
// DirectGraphics directgraphics = DirectUtils.getDirectGraphics(img.getGraphics());
// data = new short[Consts.SN_TILE_WIDTH *Consts.SN_TILE_HEIGHT];
// directgraphics.getPixels(data, 0, Consts.SN_TILE_WIDTH, x * Consts.SN_TILE_WIDTH, y * Consts.SN_TILE_HEIGHT, Consts.SN_TILE_WIDTH, Consts.SN_TILE_HEIGHT, 4444);
// }
//
// public void drawImage(Graphics g, int x, int y)
// {
// DirectGraphics directgraphics = DirectUtils.getDirectGraphics(g);
// directgraphics.drawPixels(data, true, 0, Consts.SN_TILE_WIDTH, x, y, Consts.SN_TILE_WIDTH, Consts.SN_TILE_HEIGHT, 0, 4444);
// }
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -