Package com.l2fprod.util
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 int
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the Fieldstatic final Component
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the FieldFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Image
Description of the Methodstatic Image
convertBytesToImage
(Component c, int[] pixels, int w, int h) Description of the Methodstatic Image
filterImage
(RGBImageFilter filter, Image image) Description of the Methodstatic Image
flipHorizontally
(Image image) Description of the Methodstatic ImageIcon
getDisabledIcon
(Image anImage) Gets the DisabledIcon attribute of the ImageUtils classstatic ImageIcon
getDisabledIcon
(ImageIcon anIcon) Gets the DisabledIcon attribute of the ImageUtils classstatic Image
getDisabledImage
(Image anImage) Gets the DisabledImage attribute of the ImageUtils classstatic Image
Description of the Methodstatic void
Description of the Methodstatic void
Description of the Methodstatic void
Description of the Methodstatic void
Description of the Methodstatic void
Description of the Methodstatic void
paint
(Component c, Graphics g, Image image, int x, int y, int width, int height, boolean alignWithParent, int paintType) Description of the Methodstatic void
Description of the Methodstatic void
Description of the Methodstatic void
paintWindow
(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 Image
rotateImage
(Image anImage) Description of the Methodstatic Image
rotateImage
(Image anImage, double angle) Description of the Methodstatic Image
rotateLeft
(Image anImage) Description of the Methodstatic Image
rotateRight
(Image anImage) static BufferedImage
toBufferedImage
(Image image) Description of the Methodstatic Image
transparent
(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
Gets the DisabledIcon attribute of the ImageUtils class- Parameters:
anIcon
- Description of Parameter- Returns:
- The DisabledIcon value
-
getDisabledIcon
Gets the DisabledIcon attribute of the ImageUtils class- Parameters:
anImage
- Description of Parameter- Returns:
- The DisabledIcon value
-
getDisabledImage
Gets the DisabledImage attribute of the ImageUtils class- Parameters:
anImage
- Description of Parameter- Returns:
- The DisabledImage value
-
filterImage
Description of the Method- Parameters:
filter
- Description of Parameterimage
- Description of Parameter- Returns:
- Description of the Returned Value
-
rotateImage
Description of the Method- Parameters:
anImage
- Description of Parameter- Returns:
- Description of the Returned Value
-
rotateImage
Description of the Method- Parameters:
anImage
- Description of Parameterangle
- Description of Parameter- Returns:
- Description of the Returned Value
-
convertBytesToImage
Description of the Method- Parameters:
c
- Description of Parameterpixels
- Description of Parameterw
- Description of Parameterh
- Description of Parameter- Returns:
- Description of the Returned Value
-
paint
Description of the Method- Parameters:
c
- Description of Parameterg
- Description of Parameterimage
- Description of Parameter
-
paint
Description of the Method- Parameters:
c
- Description of Parameterg
- Description of Parameterimage
- Description of ParameterpaintType
- Description of Parameter
-
paint
Description of the Method- Parameters:
c
- Description of Parameterg
- Description of Parameterimage
- Description of ParameteralignWithParent
- Description of Parameter
-
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
Description of the Method- Parameters:
image
- Description of Parameter- Returns:
- Description of the Returned Value
-
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
Description of the Method- Parameters:
image
- Description of Parameterfactor
- Description of Parameter- Returns:
- Description of the Returned Value
-
toBufferedImage
Description of the Method- Parameters:
image
- Description of Parameter- Returns:
- Description of the Returned Value
-
flipHorizontally
Description of the Method- Parameters:
image
- Description of Parameter- Returns:
- Description of the Returned Value
-
rotateLeft
Description of the Method- Parameters:
anImage
- Description of Parameter- Returns:
- Description of the Returned Value
-
rotateRight
-