Package org.lwjgl.util
Class XPMFile
java.lang.Object
org.lwjgl.util.XPMFile
NOTE: This simple XPM reader does not support extensions nor hotspots
- Version:
- $Revision$ $Id$
- Author:
- Brian Matzon invalid input: '<'brian@matzon.dk>, Jos Hirth
-
Method Summary
-
Method Details
-
load
Loads the XPM file- Parameters:
file
- path to file- Returns:
- XPMFile loaded, or exception
- Throws:
IOException
- If any IO exceptions occurs while reading file
-
load
Loads the XPM file- Parameters:
is
- InputStream to read file from- Returns:
- XPMFile loaded, or exception
-
getHeight
public int getHeight()- Returns:
- the height of the image.
-
getWidth
public int getWidth()- Returns:
- the width of the image.
-
getBytes
public byte[] getBytes()- Returns:
- The data of the image.
-
main
- Parameters:
args
-
-