fr.imag.adele.util.image
Class ImageUtil

java.lang.Object
  extended byfr.imag.adele.util.image.ImageUtil

public class ImageUtil
extends Object

Author:
donsez

Constructor Summary
ImageUtil()
           
 
Method Summary
static byte[] dumpImage(Image img)
           
static void saveImage(Image img, String filename)
           
static void writeImage(Image img, OutputStream os)
           
static void writeImage(Image img, OutputStream os, float scale)
           
static void writeImage(Image img, OutputStream os, int maxDim)
           
static void writeImage(Image img, OutputStream os, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtil

public ImageUtil()
Method Detail

saveImage

public static void saveImage(Image img,
                             String filename)
                      throws IOException
Throws:
IOException

writeImage

public static void writeImage(Image img,
                              OutputStream os,
                              int width,
                              int height)
                       throws com.sun.image.codec.jpeg.ImageFormatException,
                              IOException
Throws:
com.sun.image.codec.jpeg.ImageFormatException
IOException

writeImage

public static void writeImage(Image img,
                              OutputStream os,
                              float scale)
                       throws com.sun.image.codec.jpeg.ImageFormatException,
                              IOException
Throws:
com.sun.image.codec.jpeg.ImageFormatException
IOException

writeImage

public static void writeImage(Image img,
                              OutputStream os,
                              int maxDim)
                       throws com.sun.image.codec.jpeg.ImageFormatException,
                              IOException
Throws:
com.sun.image.codec.jpeg.ImageFormatException
IOException

writeImage

public static void writeImage(Image img,
                              OutputStream os)
                       throws com.sun.image.codec.jpeg.ImageFormatException,
                              IOException
Throws:
com.sun.image.codec.jpeg.ImageFormatException
IOException

dumpImage

public static byte[] dumpImage(Image img)
                        throws com.sun.image.codec.jpeg.ImageFormatException,
                               IOException
Throws:
com.sun.image.codec.jpeg.ImageFormatException
IOException