public class ImageUtil
extends java.lang.Object
| Constructor and Description |
|---|
ImageUtil() |
| Modifier and Type | Method and Description |
|---|---|
private java.awt.image.BufferedImage |
compressImage(java.awt.image.BufferedImage originalImage,
int type,
int width,
int height) |
java.io.File |
resizeImage(java.io.File image,
int width,
int height) |
static java.awt.image.BufferedImage |
roundCorners(java.awt.image.BufferedImage image,
int cornerRadius)
Round the corners of a given image
|
public java.io.File resizeImage(java.io.File image,
int width,
int height)
private java.awt.image.BufferedImage compressImage(java.awt.image.BufferedImage originalImage,
int type,
int width,
int height)
public static java.awt.image.BufferedImage roundCorners(java.awt.image.BufferedImage image,
int cornerRadius)
image - The BufferedImage that will be returned with rounded cornerscornerRadius - The degree to which the corners will be rounded. A higher number will result in more rounded
corners