⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagemanage.java

📁 经典FC游戏《超惑星战记》的J2ME版本!!功能基本上都实现了
💻 JAVA
字号:
/**
 * <p>Title: Transpanzer</p>
 * <p>Description:
 * You cannot remove this copyright and notice.
 * You cannot use this file any part without the express permission of the author.
 * All Rights Reserved</p>
 * @author Jjyo
 * @email jjyo@163.com
 * @version 1.0.0
 */

import java.io.IOException;
import javax.microedition.lcdui.Image;

public class ImageManage {

	public Image image;
	public int frameNum;
	public int width;
	public int height;
	public int frameSize;
	public String imageId;
	
	public ImageManage(String imageName){
		try {
			imageId=imageName;
			image=Image.createImage("/"+imageName);
			frameSize=image.getHeight();
			frameNum=image.getWidth()/frameSize;
			width=image.getWidth();
			height=image.getHeight();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			System.out.println("Image,"+imageName+" could't be loaded!");
			System.out.println(e.toString());
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -