| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.framework.util.ImageUtils
public class ImageUtils
Some util methods for reading standard images
| Constructor Summary | |
|---|---|
ImageUtils()
 | 
|
| Method Summary | |
|---|---|
static BufferedImage | 
loadImage(File file)
reads an image from the passed file location using JAI mechanism  | 
static BufferedImage | 
loadImage(InputStream is)
reads an image from the passed InputStream using JAI mechanism  | 
static BufferedImage | 
loadImage(String fileName)
reads an image from the passed file location using JAI mechanism  | 
static BufferedImage | 
loadImage(URL url)
reads an image from the passed URL using JAI mechanism  | 
static void | 
saveImage(BufferedImage image,
                   File file,
                   float quality)
stores the passed image in the passed file with defined quality  | 
static void | 
saveImage(BufferedImage image,
                   OutputStream os,
                   String format,
                   float quality)
write an image into the passed output stream. after writing the image the stream will be closed.  | 
static void | 
saveImage(BufferedImage image,
                   String fileName,
                   float quality)
stores the passed image in the passed file name with defined quality  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ImageUtils()
| Method Detail | 
|---|
public static BufferedImage loadImage(URL url)
                               throws IOException
url - address of the image
IOException
public static BufferedImage loadImage(InputStream is)
                               throws IOException
is - url - address of the image
IOException
public static BufferedImage loadImage(String fileName)
                               throws IOException
fileName - 
IOException
public static BufferedImage loadImage(File file)
                               throws IOException
file - 
IOException
public static void saveImage(BufferedImage image,
                             String fileName,
                             float quality)
                      throws IOException
image - fileName - quality - just supported for jpeg (0..1)
IOException
public static void saveImage(BufferedImage image,
                             File file,
                             float quality)
                      throws IOException
image - file - quality - just supported for jpeg (0..1)
IOException
public static void saveImage(BufferedImage image,
                             OutputStream os,
                             String format,
                             float quality)
                      throws IOException
image - os - format - quality - 
IOException
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net