public class ImageUtils extends Object
| Constructor and Description |
|---|
ImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Image |
createImage(byte[] data) |
static Image |
crop(Image source,
int x1,
int y1,
int x2,
int y2) |
static Dimension |
getSize(byte[] data) |
static Image |
loadImage(String filename) |
static Image |
resize(Image img,
int newWidth,
float quality) |
static BufferedImage |
toBufferedImage(Image img) |
static byte[] |
toByteArray(Image img) |
public static Dimension getSize(byte[] data)
public static Image createImage(byte[] data)
public static Image resize(Image img, int newWidth, float quality) throws IOException
IOExceptionpublic static BufferedImage toBufferedImage(Image img)
public static byte[] toByteArray(Image img) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.