com.silverpeas.gallery.processing
Class ImageResizer

java.lang.Object
  extended by com.silverpeas.gallery.processing.ImageResizer

public class ImageResizer
extends Object

Author:
ehugonnet

Constructor Summary
ImageResizer(BufferedImage imageSource, int maxSize)
           
 
Method Summary
protected  BufferedImage loadImage()
           
 void resizeImage(OutputStream outputStream)
           
 void resizeImageWithWatermark(OutputStream outputStream, String nameWatermark, int sizeWatermark)
           
 BufferedImage scaleImage(BufferedImage img, int targetWidth, int targetHeight, Object hint, boolean higherQuality)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageResizer

public ImageResizer(BufferedImage imageSource,
                    int maxSize)
Method Detail

resizeImageWithWatermark

public void resizeImageWithWatermark(OutputStream outputStream,
                                     String nameWatermark,
                                     int sizeWatermark)
                              throws IOException
Throws:
IOException

resizeImage

public void resizeImage(OutputStream outputStream)
                 throws IOException
Throws:
IOException

loadImage

protected BufferedImage loadImage()
                           throws IOException
Throws:
IOException

scaleImage

public BufferedImage scaleImage(BufferedImage img,
                                int targetWidth,
                                int targetHeight,
                                Object hint,
                                boolean higherQuality)


Copyright © 2016 Silverpeas. All Rights Reserved.