com.glaivestone.javax.awt
Class ImageX

java.lang.Object
  |
  +--com.glaivestone.javax.awt.ImageX

public final class ImageX
extends java.lang.Object

Utilities for Image. This class only uses AWT classes and java.net.URL.

Version:
1.0
Author:
Gary Gregory

Method Summary
static java.awt.Image getFilenameImage(java.lang.String filename)
          Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.
static java.awt.Image getImage(java.net.URL url)
          Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.
static java.awt.Image getSystemResourceImage(java.lang.String path)
          Returns an image which gets pixel data from the specified file on the class path, whose format can be either GIF, JPEG or PNG.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getImage

public static java.awt.Image getImage(java.net.URL url)
Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.

See Also:
Toolkit.getImage(URL)

getFilenameImage

public static java.awt.Image getFilenameImage(java.lang.String filename)
Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.

See Also:
Toolkit.getImage(String)

getSystemResourceImage

public static java.awt.Image getSystemResourceImage(java.lang.String path)
Returns an image which gets pixel data from the specified file on the class path, whose format can be either GIF, JPEG or PNG. This method may return null.

See Also:
ClassLoader.getSystemResource(String), Toolkit.getImage(URL)

GFL 1.1 API