org.riotfamily.common.image
Class ImageUtils

java.lang.Object
  extended by org.riotfamily.common.image.ImageUtils

public final class ImageUtils
extends Object

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
static String FORMAT_JPG
           
static String FORMAT_PNG
           
 
Method Summary
static BufferedImage read(InputStream in)
           
static BufferedImage read(Resource res)
           
static BufferedImage readImage(File f)
           
static void write(RenderedImage im, File f)
           
static void write(RenderedImage im, String formatName, Object dest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT_JPG

public static final String FORMAT_JPG
See Also:
Constant Field Values

FORMAT_PNG

public static final String FORMAT_PNG
See Also:
Constant Field Values
Method Detail

readImage

public static BufferedImage readImage(File f)
                               throws IOException
Throws:
IOException

read

public static BufferedImage read(Resource res)
                          throws IOException
Throws:
IOException

read

public static BufferedImage read(InputStream in)
                          throws IOException
Throws:
IOException

write

public static void write(RenderedImage im,
                         File f)
                  throws IOException
Throws:
IOException

write

public static void write(RenderedImage im,
                         String formatName,
                         Object dest)
                  throws IOException
Throws:
IOException