public class AWTLoader extends java.lang.Object implements AssetLoader
| Modifier and Type | Field and Description |
|---|---|
static java.awt.image.ColorModel |
AWT_RGBA4444 |
static java.awt.image.ColorModel |
AWT_RGBA5551 |
| Constructor and Description |
|---|
AWTLoader() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final java.awt.image.ColorModel AWT_RGBA4444
public static final java.awt.image.ColorModel AWT_RGBA5551
public Image load(java.awt.image.BufferedImage img, boolean flipY)
public Image load(java.io.InputStream in, boolean flipY) throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object load(AssetInfo info) throws java.io.IOException
AssetLoaderload in interface AssetLoaderjava.io.IOException - If an I/O error occurs while loading