|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.logic.CompressImpl
public class CompressImpl
Constructor Summary | |
---|---|
CompressImpl()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompressImpl()
Method Detail |
---|
public void compressToStream(BufferedImage image, OutputStream outputStream) throws IOException
LocalCompress
compressToStream
in interface LocalCompress
image
- 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)
LocalCompress
setCompressionLevel
in interface LocalCompress
percentage
- A percentage compression level from 1.00 (100%) to
0.01 (1%).public float getCompressionLevel()
LocalCompress
getCompressionLevel
in interface LocalCompress
|
||||||||||
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.