|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.l2fprod.util.ImageUtils
public final class ImageUtils
Field Summary | |
---|---|
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 |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
ImageUtils()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ImageUtils()
Method Detail |
---|
public static javax.swing.ImageIcon getDisabledIcon(javax.swing.ImageIcon anIcon)
anIcon
- Description of Parameter
public static javax.swing.ImageIcon getDisabledIcon(java.awt.Image anImage)
anImage
- Description of Parameter
public static java.awt.Image getDisabledImage(java.awt.Image anImage)
anImage
- Description of Parameter
public static java.awt.Image filterImage(java.awt.image.RGBImageFilter filter, java.awt.Image image)
filter
- Description of Parameterimage
- Description of Parameter
public static java.awt.Image rotateImage(java.awt.Image anImage)
anImage
- Description of Parameter
public static java.awt.Image rotateImage(java.awt.Image anImage, double angle)
anImage
- Description of Parameterangle
- Description of Parameter
public 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 Parameter
public 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 Parameter
public 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 Parameter
public static java.awt.Image buildTile(java.awt.Image image, int factor)
image
- Description of Parameterfactor
- Description of Parameter
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
image
- Description of Parameter
public static java.awt.Image flipHorizontally(java.awt.Image image)
image
- Description of Parameter
public static java.awt.Image rotateLeft(java.awt.Image anImage)
anImage
- Description of Parameter
public static java.awt.Image rotateRight(java.awt.Image anImage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |