mako5.gfx
Class ImageLoader

java.lang.Object
  extended by mako5.gfx.ImageLoader

public class ImageLoader
extends Object

This class loads images of different types of files. Essentially, ImageLoader is a facade for the entire image input subsystem.

Version:
29-Jun 2006
Author:
Paul Jarrett

Constructor Summary
ImageLoader()
           
 
Method Summary
static Image load(String file_)
          Loads an image from the given file.
static DefaultImage loadDefaultImage(String file_)
          Loads an image from the given file.
static MaskedImage loadMaskedImage(String file_, String mask_)
          Loads a masked image from the given file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLoader

public ImageLoader()
Method Detail

loadDefaultImage

public static DefaultImage loadDefaultImage(String file_)
Loads an image from the given file.

Returns:
the image or "null" if the image cannot be loaded
Since:
29-Jun 2006

loadMaskedImage

public static MaskedImage loadMaskedImage(String file_,
                                          String mask_)
Loads a masked image from the given file.

Returns:
the image or "null" if the image cannot be loaded
Since:
29-Jun 2006

load

public static Image load(String file_)
Loads an image from the given file.

Returns:
the image or "null" if the image cannot be loaded
Since:
29-Jun 2006