public final class ImageUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
openImage(java.lang.Class<?> from,
java.lang.String filename)
Opens an image.
|
static java.awt.Image |
resizeImage(java.awt.Image image,
int width,
int height)
Resizes an image.
|
public static java.awt.Image resizeImage(java.awt.Image image, int width, int height)
image
- Image to be resized.width
- New width.height
- New height.public static java.awt.Image openImage(java.lang.Class<?> from, java.lang.String filename)
filename
- Path to the image to open.