public final class StorageImage
- Object
- Image
- EncodedImage
- StorageImage
ImplementsActionSource
Methods
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 StorageImage create(String fileName, byte[] data, int width, int height)Parameters
fileNameString- the name of the storage file
databyte[]- the data
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 StorageImage create(String fileName, byte[] data, int width, int height, boolean keep)Parameters
fileNameString- the name of the storage file
databyte[]- the data
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
create
public static StorageImage create(String fileName, InputStream data, int width, int height)
throws IOExceptionParameters
fileNameString- the name of the storage file
dataInputStream- the stream to cache
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 StorageImage create(String fileName, int width, int height)Parameters
fileNameString- the name of the storage 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 StorageImage create(String fileName, int width, int height, boolean keep)Parameters
fileNameString- the name of the storage 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()