|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.hivegui.imaging.ImageTools
public class ImageTools
Provides miscellaneous utility functions for handling images. There is no need to instantiate this class since it only provides static methods.
Constructor Summary | |
---|---|
protected |
ImageTools()
|
Method Summary | |
---|---|
static java.awt.image.BufferedImage |
cloneImage(java.awt.image.BufferedImage source,
int sourceType)
Clone an image. |
static java.awt.image.BufferedImage |
scaleImage(java.awt.image.BufferedImage source,
int sourceType,
double ratio)
Scale an Image to a new size. |
static java.awt.image.BufferedImage |
scaleImage(java.awt.image.BufferedImage source,
int sourceType,
int newSize)
Scale an Image to a new size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ImageTools()
Method Detail |
---|
public static java.awt.image.BufferedImage cloneImage(java.awt.image.BufferedImage source, int sourceType)
source
- original image to clonesourceType
- type of the source image (as defined in BufferedImage)
public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage source, int sourceType, int newSize)
source
- original image to scale downsourceType
- type of the source image (as defined in BufferedImage)newSize
- new size to which the image should be scaled
public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage source, int sourceType, double ratio)
source
- original image to scale downsourceType
- type of the source image (as defined in BufferedImage)ratio
- scaling ratio
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |