|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.utils.JpegUtils
public class JpegUtils
Utility functions for processing JPEG images.
| Constructor Summary | |
|---|---|
JpegUtils()
|
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
loadJpegImage(java.io.InputStream aInput)
Loads a jpeg image from an input stream. |
static java.awt.image.BufferedImage |
scaleImage(int aMaxWidth,
int aMaxHeight,
java.awt.Image aImage)
Scales an image preserving the aspect ratio. |
static void |
writeJpegImage(java.io.OutputStream aOutput,
int aQuality,
java.awt.image.BufferedImage aThumbImage)
Writes a JPEG image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpegUtils()
| Method Detail |
|---|
public static java.awt.image.BufferedImage scaleImage(int aMaxWidth,
int aMaxHeight,
java.awt.Image aImage)
aMaxWidth - Maximum width.aMaxHeight - Maximum height.aImage - Image to scale.
public static java.awt.image.BufferedImage loadJpegImage(java.io.InputStream aInput)
throws java.io.IOException,
java.lang.InterruptedException
aInput - Input stream.
java.io.IOException - In case of IO problems.
java.lang.InterruptedException - When execution is interrupted.
public static void writeJpegImage(java.io.OutputStream aOutput,
int aQuality,
java.awt.image.BufferedImage aThumbImage)
throws java.io.IOException
aOutput - Output stream to write to.aQuality - Quality of the JPEG image in the range 0..100aThumbImage -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||