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

📄 textrue.java

📁 一个J2ME的3D 一个J2ME的3D 一个J2ME的3D
💻 JAVA
字号:
/**
 * 
 */
package render;

import javax.microedition.lcdui.Image;

/**
 * @author PanXu
 *
 */
public class Textrue {

	/**
	 * 
	 */
	Image scrImage = null;
	int [] RowIndex = null;
	int TWidth , THeight ;
	int []ImageBuf = null;
	
	public Textrue() {
		super();
		// TODO 自动生成构造函数存根
	}
	
	/**
	 * 初始化材质
	 * @param SIg
	 */
	public void InitTextrue (Image SIg )
	{
		this .scrImage = SIg ;
		
		this .TWidth = SIg.getWidth() ;
		this .THeight = SIg .getHeight() ;
		
		this .RowIndex = new int [this .THeight];
		int n = 0 ;
		for (int i = 0 ; i < this .THeight ; i ++)
		{
			this .RowIndex [i] = n;
			n += this .TWidth ;
		}//for
		
		SIg .getRGB(this .ImageBuf , 0 , this .TWidth ,
				0 , 0 , this .TWidth , this .TWidth);
	}
}

⌨️ 快捷键说明

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