Package org.lwjgl.util
Class XPMFile
- java.lang.Object
-
- org.lwjgl.util.XPMFile
-
public class XPMFile extends java.lang.Object
NOTE: This simple XPM reader does not support extensions nor hotspots
- Version:
- $Revision$ $Id$
- Author:
- Brian Matzon
, Jos Hirth
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
int
getHeight()
int
getWidth()
static XPMFile
load(java.io.InputStream is)
Loads the XPM filestatic XPMFile
load(java.lang.String file)
Loads the XPM filestatic void
main(java.lang.String[] args)
-
-
-
Method Detail
-
load
public static XPMFile load(java.lang.String file) throws java.io.IOException
Loads the XPM file- Parameters:
file
- path to file- Returns:
- XPMFile loaded, or exception
- Throws:
java.io.IOException
- If any IO exceptions occurs while reading file
-
load
public static XPMFile load(java.io.InputStream is)
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
public static void main(java.lang.String[] args)
- Parameters:
args
-
-
-