com.jme3.texture.plugins
Class AWTLoader
java.lang.Object
com.jme3.texture.plugins.AWTLoader
- All Implemented Interfaces:
- AssetLoader
public class AWTLoader
- extends java.lang.Object
- implements AssetLoader
Method Summary |
java.lang.Object |
load(AssetInfo info)
Loads asset from the given input stream, parsing it into
an application-usable object. |
Image |
load(java.awt.image.BufferedImage img,
boolean flipY)
|
Image |
load(java.io.InputStream in,
boolean flipY)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWT_RGBA4444
public static final java.awt.image.ColorModel AWT_RGBA4444
AWT_RGBA5551
public static final java.awt.image.ColorModel AWT_RGBA5551
AWTLoader
public AWTLoader()
load
public Image load(java.awt.image.BufferedImage img,
boolean flipY)
load
public Image load(java.io.InputStream in,
boolean flipY)
throws java.io.IOException
- Throws:
java.io.IOException
load
public java.lang.Object load(AssetInfo info)
throws java.io.IOException
- Description copied from interface:
AssetLoader
- Loads asset from the given input stream, parsing it into
an application-usable object.
- Specified by:
load
in interface AssetLoader
- Returns:
- An object representing the resource.
- Throws:
java.io.IOException
- If an I/O error occurs while loading