ImageUtils contains utility functions for:
@Deprecated
public class ImageUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
createDisabledImage(java.awt.Image image)
Deprecated.
Creates a disabled version of an image.
|
static java.awt.Image |
createFilteredImage(java.awt.Image baseImage,
java.awt.image.ImageFilter imageFilter)
Deprecated.
Given an image and a filter, creates the resulting image.
|
static java.awt.Image |
createImage(javax.swing.Icon icon,
java.awt.Component component)
Deprecated.
Given an icon, get the image it represents, when rendered in
the context of the given component.
|
static java.awt.Image |
getImageResource(java.lang.Class cl,
java.lang.String name)
Deprecated.
Gets an image resource.
|
static java.awt.Image |
getNotLoadedImage()
Deprecated.
Returns the special "not loaded" image, indicating that
an image failed to be loaded properly.
|
static boolean |
isImageLoaded(java.awt.Image image)
Deprecated.
Return true if the Image has been successfully loaded.
|
static boolean |
loadImage(java.awt.Image image)
Deprecated.
Synchronously loads a single image.
|
static boolean |
loadImages(java.awt.Image[] images)
Deprecated.
Synchronously loads multiple images.
|
public static java.awt.Image createImage(javax.swing.Icon icon, java.awt.Component component)
public static java.awt.Image createFilteredImage(java.awt.Image baseImage, java.awt.image.ImageFilter imageFilter)
baseImage
- the base imageimageFilter
- the image filterpublic static java.awt.Image createDisabledImage(java.awt.Image image)
image
- the base imagepublic static java.awt.Image getImageResource(java.lang.Class cl, java.lang.String name)
cl
- the class used to load the resourcename
- the path to the resource, relative to the classpublic static java.awt.Image getNotLoadedImage()
public static boolean isImageLoaded(java.awt.Image image)
image
- Image to check for sucessful loading
public static boolean loadImage(java.awt.Image image)
public static boolean loadImages(java.awt.Image[] images)