public final class FileEncodedImage
- Object
- Image
- EncodedImage
- FileEncodedImage
ImplementsActionSource
Methods
public static FileEncodedImage create(String fileName, int width, int height) | Creates an encoded image that maps to a local file thus allowing to seamlessly fetch files as needed. |
public static FileEncodedImage create(String fileName, InputStream i, int width, int height)
throws IOException | Creates an encoded image that maps to a local file thus allowing to seamlessly fetch files as needed. |
public static FileEncodedImage create(String fileName, int width, int height, boolean keep) | Creates an encoded image that maps to a local file thus allowing to seamlessly fetch files as needed. |
public byte[] getImageData() | Returns the byte array data backing the image allowing the image to be stored and discarded completely from RAM. |
Inherited methods
From EncodedImage
createMulti, createFromImage, createFromRGB, create, create, create, create, create, resetCache, dispose, isDisposed, getImage, getInternal, isLocked, asyncLock, lock, unlock, subImage, rotate, modifyAlpha, modifyAlpha, getGraphics, getWidth, getHeight, drawImage, drawImage, toRGB, scaledWidth, scaledHeight, scaledSmallerRatio, scaledEncoded, scaled, scale, isAnimation, isOpaque
From Image
isSimdOptimizationsEnabled, setSimdOptimizationsEnabled, resetSimdOptimizationsEnabled, isSVGSupported, createSVG, createIndexed, createImage, createImage, createImage, createImage, createImage, isAlphaMutableImageSupported, createImage, createImage, exifRotation, exifRotation, exifRotation, getExifOrientationTag, getExifOrientationTag, isJPEG, isPNG, getSVGDocument, isSVG, createMask, applyMask, applyMask, applyMaskAutoScale, mirror, modifyAlphaWithTranslucency, getRGB, getRGB, getRGBCached, scaledLargerRatio, fill, animate, getImageName, setImageName, rotate90Degrees, rotate180Degrees, rotate270Degrees, flipHorizontally, flipVertically, requiresDrawImage, addActionListener, removeActionListener, fireChangedEvent
Method details
create
public static FileEncodedImage create(String fileName, int width, int height)Parameters
fileNameString- the name of the file
widthint- the width of the file or -1 if unknown (notice that this will improve performance)
heightint- the height of the file or -1 if unknown (notice that this will improve performance)
Returns
create
public static FileEncodedImage create(String fileName, InputStream i, int width, int height)
throws IOExceptionParameters
fileNameString- the name of the file
iInputStream- input stream from which to create the file
widthint- the width of the file or -1 if unknown (notice that this will improve performance)
heightint- the height of the file or -1 if unknown (notice that this will improve performance)
Returns
Throws
create
public static FileEncodedImage create(String fileName, int width, int height, boolean keep)Parameters
fileNameString- the name of the file
widthint- the width of the file or -1 if unknown (notice that this will improve performance)
heightint- the height of the file or -1 if unknown (notice that this will improve performance)
keepboolean- if set to true keeps the file in RAM once loaded
Returns
getImageData
public byte[] getImageData()