public class StorageImage extends EncodedImage
| Modifier and Type | Method and Description | 
|---|---|
| static StorageImage | create(String fileName,
      byte[] data,
      int width,
      int height)Creates an encoded image that maps to a storage file thus allowing to
 seamlessly cache images as needed. | 
| static StorageImage | create(String fileName,
      byte[] data,
      int width,
      int height,
      boolean keep)Creates an encoded image that maps to a storage file thus allowing to
 seamlessly cache images as needed. | 
| static StorageImage | create(String fileName,
      InputStream data,
      int width,
      int height)Creates an encoded image that maps to a storage file thus allowing to
 seamlessly cache images as needed. | 
| static StorageImage | create(String fileName,
      int width,
      int height)Creates an encoded image that maps to a storage file thus allowing to
 seamlessly cache images as needed. | 
| static StorageImage | create(String fileName,
      int width,
      int height,
      boolean keep)Creates an encoded image that maps to a storage file thus allowing to
 seamlessly cache images as needed. | 
| byte[] | getImageData()Returns the byte array data backing the image allowing the image to be stored
 and discarded completely from RAM. | 
asyncLock, create, create, create, create, create, createFromImage, createFromRGB, createMulti, drawImage, drawImage, getGraphics, getHeight, getImage, getInternal, getWidth, isAnimation, isLocked, isOpaque, lock, modifyAlpha, modifyAlpha, resetCache, rotate, scale, scaled, scaledEncoded, scaledHeight, scaledSmallerRatio, scaledWidth, subImage, toRGB, unlockaddActionListener, animate, 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 static StorageImage create(String fileName, byte[] data, int width, int height)
fileName - the name of the storage filedata - the datawidth - the width of the file or -1 if unknown (notice that this will improve performance)height - the height of the file or -1 if unknown (notice that this will improve performance)public static StorageImage create(String fileName, byte[] data, int width, int height, boolean keep)
fileName - the name of the storage filedata - the datawidth - the width of the file or -1 if unknown (notice that this will improve performance)height - the height of the file or -1 if unknown (notice that this will improve performance)keep - if set to true keeps the file in RAM once loadedpublic static StorageImage create(String fileName, InputStream data, int width, int height) throws IOException
fileName - the name of the storage filedata - the stream to cachewidth - the width of the file or -1 if unknown (notice that this will improve performance)height - the height of the file or -1 if unknown (notice that this will improve performance)IOExceptionpublic static StorageImage create(String fileName, int width, int height)
fileName - the name of the storage filewidth - the width of the file or -1 if unknown (notice that this will improve performance)height - the height of the file or -1 if unknown (notice that this will improve performance)public static StorageImage create(String fileName, int width, int height, boolean keep)
fileName - the name of the storage filewidth - the width of the file or -1 if unknown (notice that this will improve performance)height - the height of the file or -1 if unknown (notice that this will improve performance)keep - if set to true keeps the file in RAM once loaded