| java.lang.Object com.nabhinc.util.ImageUtil
ImageUtil | public class ImageUtil (Code) | | author: Padmanabh Dabke author: (c) 2004 Nabh Information Systems, Inc. All Rights Reserved. |
Method Summary | |
public static void | createJPEGThumbnail(byte[] imgByte, String imageFileName, int maxWidth, int maxHeight) Create a jpeg thumbnail image with the specified maximum size. |
createJPEGThumbnail | public static void createJPEGThumbnail(byte[] imgByte, String imageFileName, int maxWidth, int maxHeight) throws IOException(Code) | | Create a jpeg thumbnail image with the specified maximum size. If the image size is larger
than the maximum allowed, the size (width and height) will be scaled to the actual
ratio (width/height). The output image file name must have .jpg or jpeg extension.
Parameters: inputStream - The original image input stream. Parameters: imageFileName - The output image file. The name must be ended with .jpg or jpeg Parameters: maxWidth - Image's maximum width Parameters: maxHeight - Image's maximum height throws: IOException - Thrown if the output filename's extension is not jpg. |
|
|