|
deegree 2.5 (2011/06/29 09:44 build-8-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(java.io.OutputStream out,
java.awt.image.BufferedImage img)
|
static java.awt.image.BufferedImage |
loadImage(java.io.File file)
reads an image from the passed file location using JAI mechanism |
static java.awt.image.BufferedImage |
loadImage(java.io.InputStream is)
reads an image from the passed InputStream using JAI mechanism |
static java.awt.image.BufferedImage |
loadImage(java.lang.String fileName)
reads an image from the passed file location using JAI mechanism |
static java.awt.image.BufferedImage |
loadImage(java.net.URL url)
reads an image from the passed URL using JAI mechanism |
static void |
saveImage(java.awt.image.BufferedImage image,
java.io.File file,
float quality)
stores the passed image in the passed file with defined quality |
static void |
saveImage(java.awt.image.BufferedImage image,
java.io.OutputStream os,
java.lang.String format,
float quality)
write an image into the passed output stream. after writing the image the stream will be closed. |
static void |
saveImage(java.awt.image.BufferedImage image,
java.lang.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 java.awt.image.BufferedImage loadImage(java.net.URL url)
throws java.io.IOException
url - address of the image
java.io.IOException
public static java.awt.image.BufferedImage loadImage(java.io.InputStream is)
throws java.io.IOException
is -
java.io.IOException
public static java.awt.image.BufferedImage loadImage(java.lang.String fileName)
throws java.io.IOException
fileName -
java.io.IOException
public static java.awt.image.BufferedImage loadImage(java.io.File file)
throws java.io.IOException
file -
java.io.IOException
public static void saveImage(java.awt.image.BufferedImage image,
java.lang.String fileName,
float quality)
throws java.io.IOException
image - fileName - quality - just supported for jpeg (0..1)
java.io.IOException
public static void saveImage(java.awt.image.BufferedImage image,
java.io.File file,
float quality)
throws java.io.IOException
image - file - quality - just supported for jpeg (0..1)
java.io.IOException
public static void saveImage(java.awt.image.BufferedImage image,
java.io.OutputStream os,
java.lang.String format,
float quality)
throws java.io.IOException
image - os - format - quality -
java.io.IOException
public static void encodeGif(java.io.OutputStream out,
java.awt.image.BufferedImage img)
throws java.io.IOException
out - img -
java.io.IOException
|
deegree 2.5 (2011/06/29 09:44 build-8-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