|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mancrd.ahah.commons.utils.ImageUtils
public final class ImageUtils
Method Summary | |
---|---|
static BufferedImage |
createThumbnail(BufferedImage pBufferedImage,
int pSize)
Creates a Thumbnail of an image, maintaining the aspect ratio, and scaling the largest dimension to pSize |
static BufferedImage |
fillTransparentPixels(BufferedImage image,
Color fillColor)
|
static BufferedImage |
getBufferedImageFromFile(File pFile)
Creates a BufferredImage give a File |
static BufferedImage |
getBufferedImageFromURL(String imageUrl)
Generates a BufferedImage from a given URL |
static Dimension |
getImageSizeWithoutFullDownload(URL url,
int timeout)
|
static byte[] |
getJpegImageByteArray(BufferedImage bufferedImage,
float quality)
|
static String |
getMD5Hash(BufferedImage pBufferedImage)
Generates a MD5 Hash for a given Bufferred Image |
static int[] |
getPixelARGB(int pixel)
|
static int |
getPixelInt(int a,
int r,
int g,
int b)
|
static boolean |
saveByteArrayToJpeg(byte[] imageInBytes,
String path,
String name)
|
static boolean |
saveImage(BufferedImage pBufferedImage,
String pPath,
String pName,
String pFileExtension)
|
static boolean |
saveJPG(BufferedImage pBufferedImage,
String pPath,
String pName)
|
static boolean |
saveJPGWithQuality(BufferedImage pBufferedImage,
String pPath,
String pName,
float quality)
|
static boolean |
savePNG(BufferedImage pBufferedImage,
String pPath,
String pName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean saveJPGWithQuality(BufferedImage pBufferedImage, String pPath, String pName, float quality)
public static byte[] getJpegImageByteArray(BufferedImage bufferedImage, float quality)
public static boolean saveByteArrayToJpeg(byte[] imageInBytes, String path, String name)
public static BufferedImage fillTransparentPixels(BufferedImage image, Color fillColor)
public static boolean savePNG(BufferedImage pBufferedImage, String pPath, String pName)
public static boolean saveJPG(BufferedImage pBufferedImage, String pPath, String pName)
public static boolean saveImage(BufferedImage pBufferedImage, String pPath, String pName, String pFileExtension)
public static int[] getPixelARGB(int pixel)
public static int getPixelInt(int a, int r, int g, int b)
public static BufferedImage getBufferedImageFromURL(String imageUrl)
imageUrl
-
public static Dimension getImageSizeWithoutFullDownload(URL url, int timeout)
public static BufferedImage createThumbnail(BufferedImage pBufferedImage, int pSize)
pBufferedImage
- pSize
-
public static BufferedImage getBufferedImageFromFile(File pFile)
pFile
-
public static String getMD5Hash(BufferedImage pBufferedImage)
pBufferedImage
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |