|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecthexIT.ImageTools
ImageTools is a helper class that provides convenient methods for loading, caching, and scaling images.
Constructor Summary | |
ImageTools()
|
Method Summary | |
static java.awt.Image |
loadImage(java.lang.String filename)
Load the image with the specified filename and return it. |
static java.awt.Image |
loadScaledImage(java.lang.String filename,
int new_width,
int new_height)
Scale the specified image. |
static java.awt.Image |
scaleImage(java.awt.Image img,
int new_width,
int new_height)
Scale the specified image. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageTools()
Method Detail |
public static java.awt.Image loadImage(java.lang.String filename)
public static java.awt.Image scaleImage(java.awt.Image img, int new_width, int new_height)
public static java.awt.Image loadScaledImage(java.lang.String filename, int new_width, int new_height)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |