public final class ImageUtil extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static org.apache.log4j.Logger |
logger |
| Modifier | Constructor and Description |
|---|---|
private |
ImageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.ImageIcon |
scaleImageIcon(javax.swing.ImageIcon icon,
int size)
Scales an
ImageIcon to the desired size |
static final org.apache.log4j.Logger logger
private ImageUtil()
public static javax.swing.ImageIcon scaleImageIcon(javax.swing.ImageIcon icon, int size)
ImageIcon to the desired sizeicon - the icon, which should be resizedsize - the desired length of the longest edge of the iconImageIcon. It is the same object that you put in,
only the contained Image is exchanged.