📄 nabobphoto.java
字号:
import javax.microedition.lcdui.*;
public class nabobPhoto
{
int x, y, moveX, moveY;
Image nabobImage;
public nabobPhoto(int x, int y, int moveX, int moveY, Image nabobImage)
{
this.x=x;
this.y=y;
this.moveX=moveX;
this.moveY=moveY;
this.nabobImage=nabobImage;
}
public void paintMAP(Graphics g)
{
g.translate(x, y);
g.setClip(moveX, moveY, 32, 32);
g.drawImage(nabobImage, 0, 0, Graphics.LEFT | Graphics.TOP);
g.translate(-x, -y);
g.setClip(0, 0, 176, 208);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -