org.af.commons.io
Class ImageManager

java.lang.Object
  extended by org.af.commons.io.ImageManager

public class ImageManager
extends Object


Constructor Summary
ImageManager()
           
 
Method Summary
static void addBorder(File originalFile, File resizedFile, int newWidth, int newHeight, float quality, boolean soften)
           
static BufferedImage getBufferedImage(Image i)
           
static void resize(File originalFile, File resizedFile, int newHeight, float quality, boolean soften)
           
static void resize(File originalFile, File resizedFile, int newWidth, int newHeight, float quality, boolean soften)
           
static BufferedImage resize(Image i, int newWidth, int newHeight, float quality, boolean soften)
           
static BufferedImage soften(BufferedImage bufferedImage)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageManager

public ImageManager()
Method Detail

soften

public static BufferedImage soften(BufferedImage bufferedImage)

addBorder

public static void addBorder(File originalFile,
                             File resizedFile,
                             int newWidth,
                             int newHeight,
                             float quality,
                             boolean soften)
                      throws IOException
Throws:
IOException

resize

public static void resize(File originalFile,
                          File resizedFile,
                          int newWidth,
                          int newHeight,
                          float quality,
                          boolean soften)
                   throws IOException
Throws:
IOException

resize

public static BufferedImage resize(Image i,
                                   int newWidth,
                                   int newHeight,
                                   float quality,
                                   boolean soften)

resize

public static void resize(File originalFile,
                          File resizedFile,
                          int newHeight,
                          float quality,
                          boolean soften)
                   throws IOException
Throws:
IOException

getBufferedImage

public static BufferedImage getBufferedImage(Image i)