|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalCompress
Provides methods for performing scaling (change of the image size through interpolation or other means) on BufferedImages.
Method Summary | |
---|---|
void |
compressToStream(BufferedImage image,
OutputStream outputStream)
Compresses a buffered image to an output stream. |
float |
getCompressionLevel()
Returns the current compression level for the service. |
void |
setCompressionLevel(float percentage)
Sets the current compression level for the service. |
Method Detail |
---|
void compressToStream(BufferedImage image, OutputStream outputStream) throws IOException
image
- the thumbnail's buffered image.outputStream
- the stream to write to.
IOException
- if there is a problem when writing to stream.void setCompressionLevel(float percentage)
percentage
- A percentage compression level from 1.00 (100%) to
0.01 (1%).
ValidationException
- if the percentage
is out of
range.float getCompressionLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.