|
deegree 2.3 (2010/04/09 10:10 build-4-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 utility methods for reading standard images
| Constructor Summary | |
|---|---|
ImageUtils()
|
|
| Method Summary | |
|---|---|
static void |
encodeGif(OutputStream out,
BufferedImage img)
|
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 -
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
public static void encodeGif(OutputStream out,
BufferedImage img)
throws IOException
out - img -
IOException
|
deegree 2.3 (2010/04/09 10:10 build-4-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://www.deegree.org