com.silverpeas.util
Class ImageUtil

java.lang.Object
  extended by com.silverpeas.util.ImageUtil

public class ImageUtil
extends Object


Field Summary
static String BMP_IMAGE_EXTENSION
           
static String GIF_IMAGE_EXTENSION
           
static String[] IMAGE_EXTENTIONS
           
static String JPEG_IMAGE_EXTENSION
           
static String JPG_IMAGE_EXTENSION
           
static String PCD_IMAGE_EXTENSION
           
static String PNG_IMAGE_EXTENSION
           
static String PSD_IMAGE_EXTENSION
           
static String TGA_IMAGE_EXTENSION
           
static String TIF_IMAGE_EXTENSION
           
 
Constructor Summary
ImageUtil()
           
 
Method Summary
static String[] getWidthAndHeight(File image)
           
static String[] getWidthAndHeight(InputStream image)
           
static String[] getWidthAndHeightByHeight(File image, int heightParam)
           
static String[] getWidthAndHeightByHeight(InputStream image, int heightParam)
           
static String[] getWidthAndHeightByWidth(File image, int widthParam)
           
static String[] getWidthAndHeightByWidth(InputStream image, int widthParam)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BMP_IMAGE_EXTENSION

public static final String BMP_IMAGE_EXTENSION
See Also:
Constant Field Values

GIF_IMAGE_EXTENSION

public static final String GIF_IMAGE_EXTENSION
See Also:
Constant Field Values

JPG_IMAGE_EXTENSION

public static final String JPG_IMAGE_EXTENSION
See Also:
Constant Field Values

JPEG_IMAGE_EXTENSION

public static final String JPEG_IMAGE_EXTENSION
See Also:
Constant Field Values

PCD_IMAGE_EXTENSION

public static final String PCD_IMAGE_EXTENSION
See Also:
Constant Field Values

PNG_IMAGE_EXTENSION

public static final String PNG_IMAGE_EXTENSION
See Also:
Constant Field Values

PSD_IMAGE_EXTENSION

public static final String PSD_IMAGE_EXTENSION
See Also:
Constant Field Values

TGA_IMAGE_EXTENSION

public static final String TGA_IMAGE_EXTENSION
See Also:
Constant Field Values

TIF_IMAGE_EXTENSION

public static final String TIF_IMAGE_EXTENSION
See Also:
Constant Field Values

IMAGE_EXTENTIONS

public static final String[] IMAGE_EXTENTIONS
Constructor Detail

ImageUtil

public ImageUtil()
Method Detail

getWidthAndHeightByWidth

public static String[] getWidthAndHeightByWidth(File image,
                                                int widthParam)

getWidthAndHeightByWidth

public static String[] getWidthAndHeightByWidth(InputStream image,
                                                int widthParam)

getWidthAndHeightByHeight

public static String[] getWidthAndHeightByHeight(File image,
                                                 int heightParam)

getWidthAndHeightByHeight

public static String[] getWidthAndHeightByHeight(InputStream image,
                                                 int heightParam)

getWidthAndHeight

public static String[] getWidthAndHeight(InputStream image)

getWidthAndHeight

public static String[] getWidthAndHeight(File image)


Copyright © 2016 Silverpeas. All Rights Reserved.