|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.utils.ImageUtils
public class ImageUtils
The Class ImageUtils.
Constructor Summary | |
---|---|
ImageUtils()
|
Method Summary | |
---|---|
static javax.swing.ImageIcon |
resize(javax.swing.ImageIcon image,
int width,
int height)
Resizes an ImageIcon object. |
static javax.swing.ImageIcon |
resizeImage(java.awt.Image img,
int width,
int height)
Resizes an image with Bicubic algorithm |
static javax.swing.ImageIcon |
scaleImageBicubic(java.awt.Image image,
int width,
int height)
Scales an image with Bicubic algorithm. |
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image img)
Gets a BufferedImage from an Image object. |
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 resize(javax.swing.ImageIcon image, int width, int height)
image
- the imagewidth
- the widthheight
- the height
public static javax.swing.ImageIcon resizeImage(java.awt.Image img, int width, int height)
image
- the imagewidth
- the widthheight
- the height
public static javax.swing.ImageIcon scaleImageBicubic(java.awt.Image image, int width, int height)
image
- the imagewidth
- the widthheight
- the height
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image img)
image
- the image
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |