public class XPMFile extends Object
NOTE: This simple XPM reader does not support extensions nor hotspots
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getBytes() |
|
int |
getHeight() |
|
int |
getWidth() |
|
static XPMFile |
load(InputStream is) |
Loads the XPM file
|
static XPMFile |
load(String file) |
Loads the XPM file
|
static void |
main(String[] args) |
public static XPMFile load(String file) throws IOException
file
- path to fileIOException
- If any IO exceptions occurs while reading filepublic static XPMFile load(InputStream is)
is
- InputStream to read file frompublic int getHeight()
public int getWidth()
public byte[] getBytes()
public static void main(String[] args)
args
- Copyright © 2002-2009 lwjgl.org. All Rights Reserved.