public class ImageTransformation extends 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.
Constructor and Description |
---|
ImageTransformation(InputStream content,
int width,
int height,
String informalFormat)
The constructor of class.
|
Modifier and Type | Method and Description |
---|---|
void |
transform(OutputStream outputStream)
Performs the file transformation using the
outputStream parameter as target
of the file transformations. |
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
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
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.