myimage.java
来自「这个游戏的关卡使用mapwin制作的」· Java 代码 · 共 25 行
JAVA
25 行
//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 + =
减小字号Ctrl + -
显示快捷键?