public interface LocalCompress
|Modifier and Type||Method and Description|
Compresses a buffered image to an output stream.
Returns the current compression level for the service.
Sets the current compression level for the service.
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
percentageis out of range. (actually doesn't but might should)
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.