public class ComponentImage.EncodedWrapper
- Object
- Image
- EncodedImage
- ComponentImage.EncodedWrapper
ImplementsActionSource
Methods
public EncodedImage scaledEncoded(int width, int height) | Performs scaling using ImageIO to generate an encoded Image |
public Image scaled(int width, int height) | Returns a scaled version of this image image using the given width and height, this is a fast algorithm that preserves translucent information. |
protected Image getInternal() | Returns the actual image represented by the encoded image, this image will be cached in a weak/soft reference internally. |
Inherited methods
From EncodedImage
createMulti, createFromImage, createFromRGB, create, create, create, create, create, resetCache, dispose, isDisposed, getImageData, getImage, isLocked, asyncLock, lock, unlock, subImage, rotate, modifyAlpha, modifyAlpha, getGraphics, getWidth, getHeight, drawImage, drawImage, toRGB, scaledWidth, scaledHeight, scaledSmallerRatio, 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
scaledEncoded
public EncodedImage scaledEncoded(int width, int height)Parameters
widthint- the width of the image, -1 to scale based on height and preserve aspect ratio
heightint- the height of the image, -1 to scale based on width and preserve aspect ratio
Returns
scaled
public Image scaled(int width, int height)Parameters
widthint- width for the scaling
heightint- height of the scaled image
Returns
getInternal
protected Image getInternal()