Class ImageUtils

java.lang.Object
com.l2fprod.util.ImageUtils
All Implemented Interfaces:
SwingConstants

public final class ImageUtils extends Object implements SwingConstants
Version:
$Revision: 1.8 $, $Date: 2006/07/22 09:52:13 $
Author:
$Author: l2fprod $
  • Field Details

    • producer

      public static final Component producer
      Description of the Field
    • PAINT_NORMAL

      public static final int PAINT_NORMAL
      Description of the Field
      See Also:
    • PAINT_STRETCH

      public static final int PAINT_STRETCH
      Description of the Field
      See Also:
    • PAINT_TILE

      public static final int PAINT_TILE
      Description of the Field
      See Also:
    • PAINT_CENTERED

      public static final int PAINT_CENTERED
      Description of the Field
      See Also:
    • PAINT_NONE

      public static final int PAINT_NONE
      Description of the Field
      See Also:
    • TRANSPARENT_RED

      public static final int TRANSPARENT_RED
      Description of the Field
      See Also:
    • TRANSPARENT_GREEN

      public static final int TRANSPARENT_GREEN
      Description of the Field
      See Also:
    • TRANSPARENT_BLUE

      public static final int TRANSPARENT_BLUE
      Description of the Field
      See Also:
    • TRANSPARENT_TO_REMOVE

      public static final int TRANSPARENT_TO_REMOVE
      Description of the Field
    • TRANSPARENT_PIXEL

      public static final int TRANSPARENT_PIXEL
      Description of the Field
  • Constructor Details

    • ImageUtils

      public ImageUtils()
  • Method Details

    • getDisabledIcon

      public static ImageIcon getDisabledIcon(ImageIcon anIcon)
      Gets the DisabledIcon attribute of the ImageUtils class
      Parameters:
      anIcon - Description of Parameter
      Returns:
      The DisabledIcon value
    • getDisabledIcon

      public static ImageIcon getDisabledIcon(Image anImage)
      Gets the DisabledIcon attribute of the ImageUtils class
      Parameters:
      anImage - Description of Parameter
      Returns:
      The DisabledIcon value
    • getDisabledImage

      public static Image getDisabledImage(Image anImage)
      Gets the DisabledImage attribute of the ImageUtils class
      Parameters:
      anImage - Description of Parameter
      Returns:
      The DisabledImage value
    • filterImage

      public static Image filterImage(RGBImageFilter filter, Image image)
      Description of the Method
      Parameters:
      filter - Description of Parameter
      image - Description of Parameter
      Returns:
      Description of the Returned Value
    • rotateImage

      public static Image rotateImage(Image anImage)
      Description of the Method
      Parameters:
      anImage - Description of Parameter
      Returns:
      Description of the Returned Value
    • rotateImage

      public static Image rotateImage(Image anImage, double angle)
      Description of the Method
      Parameters:
      anImage - Description of Parameter
      angle - Description of Parameter
      Returns:
      Description of the Returned Value
    • convertBytesToImage

      public static Image convertBytesToImage(Component c, int[] pixels, int w, int h)
      Description of the Method
      Parameters:
      c - Description of Parameter
      pixels - Description of Parameter
      w - Description of Parameter
      h - Description of Parameter
      Returns:
      Description of the Returned Value
    • paint

      public static void paint(Component c, Graphics g, Image image)
      Description of the Method
      Parameters:
      c - Description of Parameter
      g - Description of Parameter
      image - Description of Parameter
    • paint

      public static void paint(Component c, Graphics g, Image image, int paintType)
      Description of the Method
      Parameters:
      c - Description of Parameter
      g - Description of Parameter
      image - Description of Parameter
      paintType - Description of Parameter
    • paint

      public static void paint(Component c, Graphics g, Image image, boolean alignWithParent)
      Description of the Method
      Parameters:
      c - Description of Parameter
      g - Description of Parameter
      image - Description of Parameter
      alignWithParent - 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 Parameter
      g - Description of Parameter
      image - Description of Parameter
      alignWithParent - Description of Parameter
      paintType - Description of Parameter
    • paint

      public static void paint(Component c, Graphics g, Image image, int x, int y, int width, int height)
      Description of the Method
      Parameters:
      c - Description of Parameter
      g - Description of Parameter
      image - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      width - Description of Parameter
      height - 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 Parameter
      g - Description of Parameter
      image - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      width - Description of Parameter
      height - Description of Parameter
      paintType - 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 Parameter
      g - Description of Parameter
      image - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      width - Description of Parameter
      height - Description of Parameter
      alignWithParent - Description of Parameter
      paintType - Description of Parameter
    • paintWindow

      public static 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)
    • 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 Parameter
      g - Description of Parameter
      image - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      width - Description of Parameter
      height - Description of Parameter
    • transparent

      public static Image transparent(Image image)
      Description of the Method
      Parameters:
      image - Description of Parameter
      Returns:
      Description of the Returned Value
    • grab

      public static Image grab(Image image, int x, int y, int width, int height)
      Description of the Method
      Parameters:
      image - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      width - Description of Parameter
      height - Description of Parameter
      Returns:
      Description of the Returned Value
    • buildTile

      public static Image buildTile(Image image, int factor)
      Description of the Method
      Parameters:
      image - Description of Parameter
      factor - Description of Parameter
      Returns:
      Description of the Returned Value
    • toBufferedImage

      public static BufferedImage toBufferedImage(Image image)
      Description of the Method
      Parameters:
      image - Description of Parameter
      Returns:
      Description of the Returned Value
    • flipHorizontally

      public static Image flipHorizontally(Image image)
      Description of the Method
      Parameters:
      image - Description of Parameter
      Returns:
      Description of the Returned Value
    • rotateLeft

      public static Image rotateLeft(Image anImage)
      Description of the Method
      Parameters:
      anImage - Description of Parameter
      Returns:
      Description of the Returned Value
    • rotateRight

      public static Image rotateRight(Image anImage)