org.mentawai.util
Class ImageUtils
java.lang.Object
org.mentawai.util.ImageUtils
public class ImageUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageUtils
public ImageUtils()
getSize
public static Dimension getSize(byte[] data)
createImage
public static Image createImage(byte[] data)
resize
public static Image resize(Image img,
int newWidth,
float quality)
throws IOException
- Throws:
IOException
toBufferedImage
public static BufferedImage toBufferedImage(Image img)
toByteArray
public static byte[] toByteArray(Image img)
throws IOException
- Throws:
IOException
crop
public static Image crop(Image source,
int x1,
int y1,
int x2,
int y2)
loadImage
public static Image loadImage(String filename)
Copyright © 2012. All Rights Reserved.