public class ImageUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageUtils.ImageFormat |
| Constructor and Description |
|---|
ImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
flipImageHorizontally(BufferedImage image) |
static BufferedImage |
flipImageVertically(BufferedImage image) |
static ImageUtils.ImageFormat |
getImageFormat(InputStream in) |
static int[] |
getScaledDimension(int originalWidth,
int originalHeight,
int boundWidth,
int boundHeight) |
static BufferedImage |
reorientImage(BufferedImage image,
boolean yAxisFlipNeeded,
int cwRotationNeeded)
Flipping (Mirroring) is performed BEFORE Rotating the image.
|
static byte[] |
resize(byte[] imageData,
int maxWidth,
int maxHeight,
int jpegQuality) |
static BufferedImage |
rotateImage(BufferedImage image,
int cwRotationNeeded) |
static int |
thumbnailType(BufferedImage image) |
public static byte[] resize(byte[] imageData,
int maxWidth,
int maxHeight,
int jpegQuality)
public static BufferedImage reorientImage(BufferedImage image, boolean yAxisFlipNeeded, int cwRotationNeeded)
public static BufferedImage flipImageHorizontally(BufferedImage image)
public static BufferedImage flipImageVertically(BufferedImage image)
public static BufferedImage rotateImage(BufferedImage image, int cwRotationNeeded)
public static int[] getScaledDimension(int originalWidth,
int originalHeight,
int boundWidth,
int boundHeight)
public static int thumbnailType(BufferedImage image)
public static ImageUtils.ImageFormat getImageFormat(InputStream in) throws IOException
IOExceptionCopyright © 2013–2017 V5 Analytics. All rights reserved.