com.silverpeas.gallery.processing
Class ImageResizer
java.lang.Object
  
com.silverpeas.gallery.processing.ImageResizer
public class ImageResizer
- extends Object
 
- Author:
 
  - ehugonnet
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ImageResizer
public ImageResizer(BufferedImage imageSource,
                    int maxSize)
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.