ome.api.local
Interface LocalCompress

All Known Implementing Classes:
CompressImpl

public interface LocalCompress

Provides methods for performing scaling (change of the image size through interpolation or other means) on BufferedImages.

Since:
3.0
Version:
3.0 (Internal version: $Rev: 1167 $ $Date: 2006-12-15 10:39:34 +0000 (Fri, 15 Dec 2006) $)
Author:
Chris Allan      callan@blackcat.ca

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

compressToStream

void compressToStream(BufferedImage image,
                      OutputStream outputStream)
                      throws IOException
Compresses a buffered image to an output stream.

Parameters:
image - the thumbnail's buffered image.
outputStream - the stream to write to.
Throws:
IOException - if there is a problem when writing to stream.

setCompressionLevel

void setCompressionLevel(float percentage)
Sets the current compression level for the service. (The default is 85%)

Parameters:
percentage - A percentage compression level from 1.00 (100%) to 0.01 (1%).
Throws:
ValidationException - if the percentage is out of range.

getCompressionLevel

float getCompressionLevel()
Returns the current compression level for the service.



OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.