public class ImageModifier
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
opacity
Stores the opacity of an image
|
static int |
RGB
Stores BufferedImage.TYPE_INT_RGB
|
static int |
RGBA
Stores BufferedImage.TYPE_INT_ARGB
|
| Constructor and Description |
|---|
ImageModifier()
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
fadeImage(java.awt.image.BufferedImage orgImg,
int x,
int y,
int w,
int h,
int imgType,
double fadeDelay)
Fades the image
|
public static final int RGB
public static final int RGBA
public static float opacity
public static java.awt.image.BufferedImage fadeImage(java.awt.image.BufferedImage orgImg,
int x,
int y,
int w,
int h,
int imgType,
double fadeDelay)
orgImg - The original imagex - The x coordinate of the original imagey - The y coordinate of the original imagew - The width of the original imageh - The height of the original imageimgType - Applying transpareny or more colorfadeDelay - The delay interval to fade more of the image