public class ImageUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
scale(BufferedImage org,
int width,
int height)
Scales an Image proportionally.
|
static BufferedImage |
toBufferedImage(byte[] org)
Converts a byte array to a BufferedImage.
|
static byte[] |
toByteArray(BufferedImage org)
Converts a BufferedImage to a byte array.
|
public static BufferedImage scale(BufferedImage org, int width, int height) throws IOException
org - width - height - IOExceptionpublic static byte[] toByteArray(BufferedImage org) throws IOException
org - a java.awt.image.BufferedImage objectIOExceptionpublic static BufferedImage toBufferedImage(byte[] org) throws IOException
org - a byte array with the contents of the imageIOExceptionCopyright © 2015 Europeana Foundation. All rights reserved.