public class GGImage
extends java.lang.Object
Constructor and Description |
---|
GGImage() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
invertAllColors(java.awt.image.BufferedImage bi) |
static java.awt.image.BufferedImage |
invertColor(java.awt.image.BufferedImage bi,
boolean red,
boolean green,
boolean blue) |
static java.awt.image.BufferedImage |
replaceColor(java.awt.image.BufferedImage bi,
java.awt.Color oldColor,
java.awt.Color newColor) |
static java.awt.image.BufferedImage |
scale(java.awt.image.BufferedImage bi,
int width,
int height) |
static java.awt.image.BufferedImage |
setTransparency(java.awt.image.BufferedImage bi,
java.awt.Color color,
int alpha)
Sets the transparency of the given color to given value.
|
static java.awt.image.BufferedImage |
shear(java.awt.image.BufferedImage bi,
double shx,
double shy) |
static java.awt.image.BufferedImage |
shrink(java.awt.image.BufferedImage bi,
double factor) |
public static java.awt.image.BufferedImage replaceColor(java.awt.image.BufferedImage bi, java.awt.Color oldColor, java.awt.Color newColor)
public static java.awt.image.BufferedImage invertAllColors(java.awt.image.BufferedImage bi)
public static java.awt.image.BufferedImage invertColor(java.awt.image.BufferedImage bi, boolean red, boolean green, boolean blue)
public static java.awt.image.BufferedImage shrink(java.awt.image.BufferedImage bi, double factor)
public static java.awt.image.BufferedImage scale(java.awt.image.BufferedImage bi, int width, int height)
public static java.awt.image.BufferedImage shear(java.awt.image.BufferedImage bi, double shx, double shy)
public static java.awt.image.BufferedImage setTransparency(java.awt.image.BufferedImage bi, java.awt.Color color, int alpha)
alpha
- value in the range 0 to 255. 0 is completely transparent (invisible)
and 255 is completely opaque