|
Gridarta Editor
|
Utility class for image related functions. More...
Collaboration diagram for net.sf.gridarta.utils.ImageUtils:Static Public Member Functions | |
| static Image | scaleImage (@NotNull final Image image, final int w, final int h) throws InterruptedException |
| Returns a scaled version of an Image. More... | |
Private Member Functions | |
| ImageUtils () | |
| Private constructor to prevent instantiation. More... | |
Static Private Attributes | |
| static final Component | COMPONENT |
| The component for the media TRACKER. More... | |
| static final MediaTracker | TRACKER = new MediaTracker(COMPONENT) |
| The MediaTracker for loading scaled images. More... | |
Utility class for image related functions.
Definition at line 31 of file ImageUtils.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 53 of file ImageUtils.java.
|
static |
Returns a scaled version of an Image.
Other than Image#getScaledInstance(int, int, int), this function drops the reference to the source image.
| image | the source image to scale |
| w | the scaled width |
| h | the scaled height |
| InterruptedException | if scaling failed because the current thread was interrupted |
Definition at line 68 of file ImageUtils.java.
Referenced by net.sf.gridarta.gui.mapimagecache.MapImageCacheEntry.scaleImage().
Here is the caller graph for this function:
|
staticprivate |
The component for the media TRACKER.
Definition at line 36 of file ImageUtils.java.
|
staticprivate |
The MediaTracker for loading scaled images.
Definition at line 48 of file ImageUtils.java.