com.jhlabs.image
public abstract class ImageUtils extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.awt.image.BufferedImage |
backgroundImage |
static int |
SELECTED |
static int |
UNSELECTED |
Constructor and Description |
---|
ImageUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
cloneImage(java.awt.image.BufferedImage image) |
static void |
composeThroughMask(java.awt.image.Raster src,
java.awt.image.WritableRaster dst,
java.awt.image.Raster sel)
Compose src onto dst using the alpha of sel to interpolate between the two.
|
static java.awt.image.BufferedImage |
convertImageToARGB(java.awt.Image image)
Convert an Image into a TYPE_INT_ARGB BufferedImage.
|
static java.awt.image.BufferedImage |
createImage(java.awt.image.ImageProducer producer) |
static int[] |
getRGB(java.awt.image.BufferedImage image,
int x,
int y,
int width,
int height,
int[] pixels)
A convenience method for getting ARGB pixels from an image.
|
static java.awt.Rectangle |
getSelectedBounds(java.awt.image.BufferedImage p) |
static java.awt.image.BufferedImage |
getSubimage(java.awt.image.BufferedImage image,
int x,
int y,
int w,
int h) |
static void |
paintCheckedBackground(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
static void |
setRGB(java.awt.image.BufferedImage image,
int x,
int y,
int width,
int height,
int[] pixels)
A convenience method for setting ARGB pixels in an image.
|
public static final int SELECTED
public static final int UNSELECTED
public static java.awt.image.BufferedImage backgroundImage
public static java.awt.image.BufferedImage createImage(java.awt.image.ImageProducer producer)
public static java.awt.image.BufferedImage convertImageToARGB(java.awt.Image image)
public static java.awt.image.BufferedImage getSubimage(java.awt.image.BufferedImage image, int x, int y, int w, int h)
public static java.awt.image.BufferedImage cloneImage(java.awt.image.BufferedImage image)
public static void paintCheckedBackground(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
public static java.awt.Rectangle getSelectedBounds(java.awt.image.BufferedImage p)
public static void composeThroughMask(java.awt.image.Raster src, java.awt.image.WritableRaster dst, java.awt.image.Raster sel)
public static int[] getRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
public static void setRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)