|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adobe.idml.ImageUtils
public abstract class ImageUtils
This class contains utilities related to viewing images in a Java graphical interface.
| Constructor Summary | |
|---|---|
ImageUtils()
|
|
| Method Summary | |
|---|---|
static javax.swing.ImageIcon |
getScaledImageIcon(int width,
int height,
java.io.File imgFile)
Given an image file and the required dimensions, this method will return a scaled ImageIcon object for the image file provided. |
static boolean |
isSupportedByImageIO(java.lang.String imgPath)
Determines if the file type of the image is supported by this utility. |
static java.awt.image.BufferedImage |
scaleImage(java.awt.image.BufferedImage img,
int width,
int height)
Scales a BufferedImage object to the size requested. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageUtils()
| Method Detail |
|---|
public static javax.swing.ImageIcon getScaledImageIcon(int width,
int height,
java.io.File imgFile)
throws java.io.IOException,
PackageException
width - The requested width for the image.height - The requested height for the image.imgFile - The image file to generated an ImageIcon object from.
java.io.IOException
PackageException
public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage img,
int width,
int height)
throws java.io.IOException
img - The BufferedImage object to be scaled.width - The width to scale the image to.height - The height to scale the image to.
java.io.IOExceptionpublic static boolean isSupportedByImageIO(java.lang.String imgPath)
imgPath - The path the the image file to be tested.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||