📄 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 + -