public final class ImageUtils
extends java.lang.Object
implements javax.swing.SwingConstants
Modifier and Type | Field and Description |
---|---|
static int |
PAINT_CENTERED
Description of the Field
|
static int |
PAINT_NONE
Description of the Field
|
static int |
PAINT_NORMAL
Description of the Field
|
static int |
PAINT_STRETCH
Description of the Field
|
static int |
PAINT_TILE
Description of the Field
|
static java.awt.Component |
producer
Description of the Field
|
static int |
TRANSPARENT_BLUE
Description of the Field
|
static int |
TRANSPARENT_GREEN
Description of the Field
|
static int |
TRANSPARENT_PIXEL
Description of the Field
|
static int |
TRANSPARENT_RED
Description of the Field
|
static int |
TRANSPARENT_TO_REMOVE
Description of the Field
|
Constructor and Description |
---|
ImageUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
buildTile(java.awt.Image image,
int factor)
Description of the Method
|
static java.awt.Image |
convertBytesToImage(java.awt.Component c,
int[] pixels,
int w,
int h)
Description of the Method
|
static java.awt.Image |
filterImage(java.awt.image.RGBImageFilter filter,
java.awt.Image image)
Description of the Method
|
static java.awt.Image |
flipHorizontally(java.awt.Image image)
Description of the Method
|
static javax.swing.ImageIcon |
getDisabledIcon(java.awt.Image anImage)
Gets the DisabledIcon attribute of the ImageUtils class
|
static javax.swing.ImageIcon |
getDisabledIcon(javax.swing.ImageIcon anIcon)
Gets the DisabledIcon attribute of the ImageUtils class
|
static java.awt.Image |
getDisabledImage(java.awt.Image anImage)
Gets the DisabledImage attribute of the ImageUtils class
|
static java.awt.Image |
grab(java.awt.Image image,
int x,
int y,
int width,
int height)
Description of the Method
|
static void |
paint(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image)
Description of the Method
|
static void |
paint(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image,
boolean alignWithParent)
Description of the Method
|
static void |
paint(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image,
boolean alignWithParent,
int paintType)
Description of the Method
|
static void |
paint(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image,
int paintType)
Description of the Method
|
static void |
paint(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image,
int x,
int y,
int width,
int height)
Description of the Method
|
static void |
paint(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image,
int x,
int y,
int width,
int height,
boolean alignWithParent,
int paintType)
Description of the Method
|
static void |
paint(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image,
int x,
int y,
int width,
int height,
int paintType)
Description of the Method
|
static void |
paintTile(java.awt.Component component,
java.awt.Graphics g,
java.awt.Image image,
int x,
int y,
int width,
int height)
Description of the Method
|
static void |
paintWindow(java.awt.Component c,
java.awt.Graphics g,
java.awt.Image image,
int x,
int y,
int width,
int height,
int windowX,
int windowY,
int windowWidth,
int windowsHeight,
boolean alignWithParent,
int paintType) |
static java.awt.Image |
rotateImage(java.awt.Image anImage)
Description of the Method
|
static java.awt.Image |
rotateImage(java.awt.Image anImage,
double angle)
Description of the Method
|
static java.awt.Image |
rotateLeft(java.awt.Image anImage)
Description of the Method
|
static java.awt.Image |
rotateRight(java.awt.Image anImage) |
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image image)
Description of the Method
|
static java.awt.Image |
transparent(java.awt.Image image)
Description of the Method
|
public static final java.awt.Component producer
public static final int PAINT_NORMAL
public static final int PAINT_STRETCH
public static final int PAINT_TILE
public static final int PAINT_CENTERED
public static final int PAINT_NONE
public static final int TRANSPARENT_RED
public static final int TRANSPARENT_GREEN
public static final int TRANSPARENT_BLUE
public static final int TRANSPARENT_TO_REMOVE
public static final int TRANSPARENT_PIXEL
public static javax.swing.ImageIcon getDisabledIcon(javax.swing.ImageIcon anIcon)
anIcon
- Description of Parameterpublic static javax.swing.ImageIcon getDisabledIcon(java.awt.Image anImage)
anImage
- Description of Parameterpublic static java.awt.Image getDisabledImage(java.awt.Image anImage)
anImage
- Description of Parameterpublic static java.awt.Image filterImage(java.awt.image.RGBImageFilter filter, java.awt.Image image)
filter
- Description of Parameterimage
- Description of Parameterpublic static java.awt.Image rotateImage(java.awt.Image anImage)
anImage
- Description of Parameterpublic static java.awt.Image rotateImage(java.awt.Image anImage, double angle)
anImage
- Description of Parameterangle
- Description of Parameterpublic static java.awt.Image convertBytesToImage(java.awt.Component c, int[] pixels, int w, int h)
c
- Description of Parameterpixels
- Description of Parameterw
- Description of Parameterh
- Description of Parameterpublic static void paint(java.awt.Component c, java.awt.Graphics g, java.awt.Image image)
c
- Description of Parameterg
- Description of Parameterimage
- Description of Parameterpublic static void paint(java.awt.Component c, java.awt.Graphics g, java.awt.Image image, int paintType)
c
- Description of Parameterg
- Description of Parameterimage
- Description of ParameterpaintType
- Description of Parameterpublic static void paint(java.awt.Component c, java.awt.Graphics g, java.awt.Image image, boolean alignWithParent)
c
- Description of Parameterg
- Description of Parameterimage
- Description of ParameteralignWithParent
- Description of Parameterpublic static void paint(java.awt.Component c, java.awt.Graphics g, java.awt.Image image, boolean alignWithParent, int paintType)
c
- Description of Parameterg
- Description of Parameterimage
- Description of ParameteralignWithParent
- Description of ParameterpaintType
- Description of Parameterpublic static void paint(java.awt.Component c, java.awt.Graphics g, java.awt.Image image, int x, int y, int width, int height)
c
- Description of Parameterg
- Description of Parameterimage
- Description of Parameterx
- Description of Parametery
- Description of Parameterwidth
- Description of Parameterheight
- Description of Parameterpublic static void paint(java.awt.Component c, java.awt.Graphics g, java.awt.Image image, int x, int y, int width, int height, int paintType)
c
- Description of Parameterg
- Description of Parameterimage
- Description of Parameterx
- Description of Parametery
- Description of Parameterwidth
- Description of Parameterheight
- Description of ParameterpaintType
- Description of Parameterpublic static void paint(java.awt.Component c, java.awt.Graphics g, java.awt.Image image, int x, int y, int width, int height, boolean alignWithParent, int paintType)
c
- Description of Parameterg
- Description of Parameterimage
- Description of Parameterx
- Description of Parametery
- Description of Parameterwidth
- Description of Parameterheight
- Description of ParameteralignWithParent
- Description of ParameterpaintType
- Description of Parameterpublic static void paintWindow(java.awt.Component c, java.awt.Graphics g, java.awt.Image image, int x, int y, int width, int height, int windowX, int windowY, int windowWidth, int windowsHeight, boolean alignWithParent, int paintType)
public static void paintTile(java.awt.Component component, java.awt.Graphics g, java.awt.Image image, int x, int y, int width, int height)
component
- Description of Parameterg
- Description of Parameterimage
- Description of Parameterx
- Description of Parametery
- Description of Parameterwidth
- Description of Parameterheight
- Description of Parameterpublic static java.awt.Image transparent(java.awt.Image image)
image
- Description of Parameterpublic static java.awt.Image grab(java.awt.Image image, int x, int y, int width, int height)
image
- Description of Parameterx
- Description of Parametery
- Description of Parameterwidth
- Description of Parameterheight
- Description of Parameterpublic static java.awt.Image buildTile(java.awt.Image image, int factor)
image
- Description of Parameterfactor
- Description of Parameterpublic static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
image
- Description of Parameterpublic static java.awt.Image flipHorizontally(java.awt.Image image)
image
- Description of Parameterpublic static java.awt.Image rotateLeft(java.awt.Image anImage)
anImage
- Description of Parameterpublic static java.awt.Image rotateRight(java.awt.Image anImage)