com.b3dgs.lionengine.utility
Class ImageInfo

java.lang.Object
  extended by com.b3dgs.lionengine.utility.ImageInfo

public class ImageInfo
extends java.lang.Object

Get quick information from an image without reading all bytes.


Constructor Summary
ImageInfo(java.lang.String filename)
          Crate a new info reader.
 
Method Summary
 java.lang.String getFormat()
          Get image format.
 int getHeight()
          Get image height.
 int getWidth()
          Get image width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageInfo

public ImageInfo(java.lang.String filename)
Crate a new info reader.

Parameters:
filename - image filename.
Method Detail

getWidth

public int getWidth()
Get image width.

Returns:
image width.

getHeight

public int getHeight()
Get image height.

Returns:
image height.

getFormat

public java.lang.String getFormat()
Get image format.

Returns:
image format.