public class CompressImpl extends Object implements LocalCompress
| Constructor and Description | 
|---|
CompressImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
public void compressToStream(BufferedImage image, OutputStream outputStream) throws IOException
LocalCompresscompressToStream in interface LocalCompressimage - the thumbnail's buffered image.outputStream - the stream to write to.IOException - if there is a problem when writing to stream.public void setCompressionLevel(float percentage)
LocalCompresssetCompressionLevel in interface LocalCompresspercentage - A percentage compression level from 1.00 (100%) to 
 0.01 (1%).public float getCompressionLevel()
LocalCompressgetCompressionLevel in interface LocalCompress
                
                
Version: 5.2.3-ice35-b22
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.