|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.file.transformation.ImageTransformation
public class ImageTransformation
Performs the the image down scale transformation. Scale transformations are based on two parameters:
Width
: the target width of image.Height
: the target height of image.All transformations are done keeping the proportionality.
Constructor Summary | |
---|---|
ImageTransformation(InputStream content,
int width,
int height,
String informalFormat)
The constructor of class. |
Method Summary | |
---|---|
void |
transform(OutputStream outputStream)
Performs the file transformation using the outputStream parameter as target
of the file transformations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageTransformation(InputStream content, int width, int height, String informalFormat)
content
- the source of transformation.width
- the new width.height
- the new height.informalFormat
- the target informal file format.
FileNotFoundException
Method Detail |
---|
public void transform(OutputStream outputStream) throws PortalException
ITransformation
outputStream
parameter as target
of the file transformations.
transform
in interface ITransformation
outputStream
- the writer to be transformed.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |