|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.moss.util.image.ImageFunctions
public class ImageFunctions
| Constructor Summary | |
|---|---|
ImageFunctions()
|
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
getImageFromComponent(java.awt.Component c)
Get a BufferedImage representation of a component. |
static java.awt.image.BufferedImage |
imageToBufferedImage(java.awt.Image img)
Converts from Image to BufferedImage. |
static java.awt.image.BufferedImage |
rotateImage(java.awt.image.BufferedImage img,
int degrees)
Rotates the given BufferedImage the specified number of degrees. |
static java.awt.image.BufferedImage |
scaleImage(java.awt.image.BufferedImage img,
int maxSize)
Scales the image. |
static java.awt.image.BufferedImage |
scaleImage(java.awt.image.BufferedImage img,
int width,
int height)
Scales the image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageFunctions()
| Method Detail |
|---|
public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage img,
int maxSize)
img - maxSize -
public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage img,
int width,
int height)
img - width - height -
public static java.awt.image.BufferedImage imageToBufferedImage(java.awt.Image img)
img - The Image to convert to BufferedImage
public static java.awt.image.BufferedImage rotateImage(java.awt.image.BufferedImage img,
int degrees)
img - The BufferedImage to rotatedegrees - The number of degrees to rotate
public static java.awt.image.BufferedImage getImageFromComponent(java.awt.Component c)
c - The component which you want an image of
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||