Package lumis.portal.file.transformation
Class ImageTransformation
- java.lang.Object
-
- lumis.portal.file.transformation.ImageTransformation
-
- All Implemented Interfaces:
ITransformation
public class ImageTransformation extends java.lang.Object implements ITransformation
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.
- Since:
- 6.1.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description ImageTransformation(java.io.InputStream content, int width, int height, java.lang.String informalFormat)
The constructor of class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
transform(java.io.OutputStream outputStream)
Performs the file transformation using theoutputStream
parameter as target of the file transformations.
-
-
-
Constructor Detail
-
ImageTransformation
public ImageTransformation(java.io.InputStream content, int width, int height, java.lang.String informalFormat)
The constructor of class. The content is the source of transformation. the width parameter is the new image width, and the height is the new image height after the end of transformation.- Parameters:
content
- the source of transformation.width
- the new width.height
- the new height.informalFormat
- the target informal file format.- Throws:
java.io.FileNotFoundException
- Since:
- 6.1.0
-
-
Method Detail
-
transform
public void transform(java.io.OutputStream outputStream) throws PortalException
Description copied from interface:ITransformation
Performs the file transformation using theoutputStream
parameter as target of the file transformations.- Specified by:
transform
in interfaceITransformation
- Parameters:
outputStream
- the writer to be transformed.- Throws:
PortalException
-
-