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