Class ImageTransformation

  • All Implemented Interfaces:
    ITransformation

    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.

    Since:
    6.1.0
    Version:
    $Revision: 16824 $ $Date: 2015-01-23 18:49:12 -0200 (Fri, 23 Jan 2015) $
    • Constructor Detail

      • ImageTransformation

        public ImageTransformation​(InputStream content,
                                   int width,
                                   int height,
                                   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:
        FileNotFoundException
        Since:
        6.1.0