public class ReplaceableImage extends EncodedImage
| Modifier and Type | Method and Description |
|---|---|
boolean |
animate() |
static ReplaceableImage |
create(EncodedImage placeholder)
Creates an encoded image that can later be replaced with a different image
|
byte[] |
getImageData()
Returns the byte array data backing the image allowing the image to be stored
and discarded completely from RAM.
|
boolean |
isAnimation()
Returns true if this is an animated image
|
boolean |
isOpaque()
Indicates whether this image is opaque or not
|
void |
replace(EncodedImage newImage)
Replaces the current image with the new image which must match the dimensions
etc.
|
asyncLock, create, create, create, create, create, createFromImage, createFromRGB, createMulti, drawImage, drawImage, getGraphics, getHeight, getImage, getInternal, getWidth, isLocked, lock, modifyAlpha, modifyAlpha, resetCache, rotate, scale, scaled, scaledEncoded, scaledHeight, scaledSmallerRatio, scaledWidth, subImage, toRGB, unlockaddActionListener, applyMask, applyMask, applyMaskAutoScale, createImage, createImage, createImage, createImage, createImage, createImage, createImage, createIndexed, createMask, createSVG, dispose, exifRotation, exifRotation, exifRotation, fill, fireChangedEvent, flipHorizontally, flipVertically, getExifOrientationTag, getExifOrientationTag, getImageName, getRGB, getRGB, getRGBCached, getSVGDocument, isAlphaMutableImageSupported, isJPEG, isPNG, isSVG, isSVGSupported, mirror, modifyAlphaWithTranslucency, removeActionListener, requiresDrawImage, rotate180Degrees, rotate270Degrees, rotate90Degrees, scaledLargerRatio, setImageNamepublic byte[] getImageData()
getImageData in class EncodedImagepublic void replace(EncodedImage newImage)
newImage - the image to applypublic static ReplaceableImage create(EncodedImage placeholder)
placeholder - a temporary imagepublic boolean isAnimation()
isAnimation in class EncodedImagepublic boolean isOpaque()
isOpaque in class EncodedImage