public class ImageUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static @NotNull java.awt.Image |
scaleImage(@NotNull java.awt.Image image,
int w,
int h)
Returns a scaled version of an
Image . |
@NotNull public static @NotNull java.awt.Image scaleImage(@NotNull @NotNull java.awt.Image image, int w, int h) throws java.lang.InterruptedException
Image
. Other than Image.getScaledInstance(int, int, int)
, this function drops the
reference to the source image.image
- the source image to scalew
- the scaled widthh
- the scaled heightjava.lang.InterruptedException
- if scaling failed because the current thread
was interrupted