com.huguesjohnson
Class ImageLoader

java.lang.Object
  extended by com.huguesjohnson.ImageLoader

public abstract class ImageLoader
extends java.lang.Object

Utility class to load an image from a file.

Author:
Hugues Johnson

Constructor Summary
ImageLoader()
           
 
Method Summary
static java.awt.image.BufferedImage loadBufferedImage(java.lang.String imagePath)
          Loads a BufferedImage from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLoader

public ImageLoader()
Method Detail

loadBufferedImage

public static final java.awt.image.BufferedImage loadBufferedImage(java.lang.String imagePath)
Loads a BufferedImage from a file.

Parameters:
imagePath - The full path to the file to load.
Returns:
A bufferedImage or null if an error occurs.