Class ImageUtils
java.lang.Object
com.l2fprod.util.ImageUtils
- All Implemented Interfaces:
SwingConstants
- Version:
- $Revision: 1.8 $, $Date: 2006/07/22 09:52:13 $
- Author:
- $Author: l2fprod $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final ComponentDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the FieldFields inherited from interface 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageDescription of the Methodstatic ImageconvertBytesToImage(Component c, int[] pixels, int w, int h) Description of the Methodstatic ImagefilterImage(RGBImageFilter filter, Image image) Description of the Methodstatic ImageflipHorizontally(Image image) Description of the Methodstatic ImageIcongetDisabledIcon(Image anImage) Gets the DisabledIcon attribute of the ImageUtils classstatic ImageIcongetDisabledIcon(ImageIcon anIcon) Gets the DisabledIcon attribute of the ImageUtils classstatic ImagegetDisabledImage(Image anImage) Gets the DisabledImage attribute of the ImageUtils classstatic ImageDescription of the Methodstatic voidDescription of the Methodstatic voidDescription of the Methodstatic voidDescription of the Methodstatic voidDescription of the Methodstatic voidDescription of the Methodstatic voidpaint(Component c, Graphics g, Image image, int x, int y, int width, int height, boolean alignWithParent, int paintType) Description of the Methodstatic voidDescription of the Methodstatic voidDescription of the Methodstatic voidpaintWindow(Component c, Graphics g, Image image, int x, int y, int width, int height, int windowX, int windowY, int windowWidth, int windowsHeight, boolean alignWithParent, int paintType) static ImagerotateImage(Image anImage) Description of the Methodstatic ImagerotateImage(Image anImage, double angle) Description of the Methodstatic ImagerotateLeft(Image anImage) Description of the Methodstatic ImagerotateRight(Image anImage) static BufferedImagetoBufferedImage(Image image) Description of the Methodstatic Imagetransparent(Image image) Description of the Method
-
Field Details
-
producer
Description of the Field -
PAINT_NORMAL
public static final int PAINT_NORMALDescription of the Field- See Also:
-
PAINT_STRETCH
public static final int PAINT_STRETCHDescription of the Field- See Also:
-
PAINT_TILE
public static final int PAINT_TILEDescription of the Field- See Also:
-
PAINT_CENTERED
public static final int PAINT_CENTEREDDescription of the Field- See Also:
-
PAINT_NONE
public static final int PAINT_NONEDescription of the Field- See Also:
-
TRANSPARENT_RED
public static final int TRANSPARENT_REDDescription of the Field- See Also:
-
TRANSPARENT_GREEN
public static final int TRANSPARENT_GREENDescription of the Field- See Also:
-
TRANSPARENT_BLUE
public static final int TRANSPARENT_BLUEDescription of the Field- See Also:
-
TRANSPARENT_TO_REMOVE
public static final int TRANSPARENT_TO_REMOVEDescription of the Field -
TRANSPARENT_PIXEL
public static final int TRANSPARENT_PIXELDescription of the Field
-
-
Constructor Details
-
ImageUtils
public ImageUtils()
-
-
Method Details
-
getDisabledIcon
-
getDisabledIcon
-
getDisabledImage
-
filterImage
Description of the Method- Parameters:
filter- Description of Parameterimage- Description of Parameter- Returns:
- Description of the Returned Value
-
rotateImage
-
rotateImage
-
convertBytesToImage
-
paint
-
paint
-
paint
-
paint
public static void paint(Component c, Graphics g, Image image, boolean alignWithParent, int paintType) Description of the Method- Parameters:
c- Description of Parameterg- Description of Parameterimage- Description of ParameteralignWithParent- Description of ParameterpaintType- Description of Parameter
-
paint
Description of the Method- Parameters:
c- Description of Parameterg- Description of Parameterimage- Description of Parameterx- Description of Parametery- Description of Parameterwidth- Description of Parameterheight- Description of Parameter
-
paint
public static void paint(Component c, Graphics g, Image image, int x, int y, int width, int height, int paintType) Description of the Method- Parameters:
c- Description of Parameterg- Description of Parameterimage- Description of Parameterx- Description of Parametery- Description of Parameterwidth- Description of Parameterheight- Description of ParameterpaintType- Description of Parameter
-
paint
public static void paint(Component c, Graphics g, Image image, int x, int y, int width, int height, boolean alignWithParent, int paintType) Description of the Method- Parameters:
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 Parameter
-
paintWindow
-
paintTile
public static void paintTile(Component component, Graphics g, Image image, int x, int y, int width, int height) Description of the Method- Parameters:
component- Description of Parameterg- Description of Parameterimage- Description of Parameterx- Description of Parametery- Description of Parameterwidth- Description of Parameterheight- Description of Parameter
-
transparent
-
grab
Description of the Method- Parameters:
image- Description of Parameterx- Description of Parametery- Description of Parameterwidth- Description of Parameterheight- Description of Parameter- Returns:
- Description of the Returned Value
-
buildTile
-
toBufferedImage
Description of the Method- Parameters:
image- Description of Parameter- Returns:
- Description of the Returned Value
-
flipHorizontally
-
rotateLeft
-
rotateRight
-