public interface LocalCompress
Modifier and Type | Method and Description |
---|---|
void |
compressToStream(java.awt.image.BufferedImage image,
java.io.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.
|
void compressToStream(java.awt.image.BufferedImage image, java.io.OutputStream outputStream) throws java.io.IOException
image
- the thumbnail's buffered image.outputStream
- the stream to write to.java.io.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%).ome.conditions.ValidationException
- if the percentage
is out of
range. (actually doesn't but might should)float getCompressionLevel()