Class ImageUtils

java.lang.Object
net.infonode.util.ImageUtils

public final class ImageUtils extends Object
  • Constructor Details

    • ImageUtils

      public ImageUtils()
  • Method Details

    • create

      public static final Image create(String filename) throws ImageException
      Throws:
      ImageException
    • create

      public static final Image create(URL url) throws ImageException
      Throws:
      ImageException
    • create

      public static final Image create(byte[] data) throws ImageException
      Throws:
      ImageException
    • waitImage

      public static final void waitImage(Image image) throws ImageException
      Throws:
      ImageException
    • getPixels

      public static final int[] getPixels(Image image) throws ImageException
      Throws:
      ImageException
    • getPixels

      public static final int[] getPixels(Image image, int x, int y, int width, int height) throws ImageException
      Throws:
      ImageException
    • getAlpha

      public static final int getAlpha(int pixel)
    • getRed

      public static final int getRed(int pixel)
    • getGreen

      public static final int getGreen(int pixel)
    • getBlue

      public static final int getBlue(int pixel)
    • createPixel

      public static final int createPixel(int red, int green, int blue)
    • toIntColor

      public static int toIntColor(Int4 i)
    • toInt4

      public static Int4 toInt4(Color c)
    • toColor

      public static Color toColor(Int4 c)
    • createGradientPixels

      public static final int[] createGradientPixels(Color[] colors, int width, int height)
    • createGradientPixels

      public static final int[] createGradientPixels(Color[] colors, int width, int height, int[] pixels)
    • createTransform

      public static AffineTransform createTransform(Direction direction, boolean horizontalFlip, boolean verticalFlip, int width, int height)