fr.paris.lutece.util.image
Class ImageUtil

java.lang.Object
  extended by fr.paris.lutece.util.image.ImageUtil

public class ImageUtil
extends java.lang.Object

Utils for image processing


Constructor Summary
ImageUtil()
           
 
Method Summary
static byte[] resizeImage(java.lang.Object blobImage, java.lang.String strWidth, java.lang.String strHeight, float fQuality)
          Resize an image to a given size with a given quality using a JPEG output format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtil

public ImageUtil()
Method Detail

resizeImage

public static byte[] resizeImage(java.lang.Object blobImage,
                                 java.lang.String strWidth,
                                 java.lang.String strHeight,
                                 float fQuality)
Resize an image to a given size with a given quality using a JPEG output format

Parameters:
blobImage - The image as a BLOB
strWidth - The new width
strHeight - The new Height
fQuality - The quality as a float between 0.0 (lower) and 1.0 (higher)
Returns:


Copyright © 2010 Mairie de Paris. All Rights Reserved.