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

📄 imageloader.java

📁 java 3d game jme 工程开发源代码
💻 JAVA
字号:
package com.jme.util;

import java.io.IOException;
import java.io.InputStream;

import com.jme.image.Image;

/**
 * Interface for image loaders. Implementing classes can be registerd with the
 * TextureManager to decode image formats with a certain file extention.
 * 
 * @see com.jme.util.TextureManager#addHandler(String, ImageLoader)
 * 
 * @author Galun
 * @author Tijl Houtbeckers -- javadoc
 * @version $Id: ImageLoader.java,v 1.1 2006/05/01 17:37:12 llama Exp $
 * 
 */
public interface ImageLoader {

	/**
	 * Decodes image data from an InputStream.
	 * 
	 * @param is
	 *            The InputStream to create the image from. The inputstream
	 *            should be closed before this method returns.
	 * @return The decoded Image.
	 * @throws IOException
	 */
	public Image load(InputStream is) throws IOException;
}

⌨️ 快捷键说明

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