public class ApngFrame extends RasterCachedImage implements IAnimationFrame
The animated PNG image frame
| Modifier and Type | Method and Description |
|---|---|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamSupporter.DataStreamContainer(DataStreamSupporter.getDataStreamContainer()/DataStreamSupporter.setDataStreamContainer_internalized(StreamContainer)). |
Color |
getBackgroundColor()
Gets the background color.
|
int |
getBitsPerPixel()
Gets the image bits per pixel count.
|
int |
getDisposalMethod()
Gets the disposal method.
|
int |
getFrameLeft()
Gets the frame left offset.
|
int |
getFrameTime()
Gets the frame duration.
|
int |
getFrameTop()
Gets the frame top offset.
|
RasterImage |
getFullFrame()
Gets the full frame.
|
int |
getHeight()
Gets the image height.
|
Color |
getTransparentColor()
Gets the transparent color.
|
int |
getWidth()
Gets the image width.
|
boolean |
hasAlpha()
Get a value indicating whether this instance has alpha.
|
boolean |
hasBackgroundColor()
Gets a value indicating whether has background color.
|
boolean |
hasTransparentColor()
Gets a value indicating whether image has transparent color.
|
void |
setBackgroundColor(boolean value)
A value indicating whether has background color.
|
void |
setBackgroundColor(Color value)
The background color.
|
void |
setFrameTime(int value)
Sets the frame duration.
|
void |
setTransparentColor(boolean value)
A value indicating whether image has transparent color.
|
void |
setTransparentColor(Color value)
The transparent color.
|
adjustBrightness, adjustContrast, adjustGamma, adjustGamma, binarizeBradley, binarizeBradley, binarizeFixed, binarizeOtsu, crop, dither, grayscale, isCached, resize, resize, rotate, rotateFlipcrop, dither, filter, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getHorizontalResolution, getImageOpacity, getModifyDate, getPixel, getPremultiplyComponents, getRawCustomColorConverter, getRawDataFormat, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getRawLineSize, getSkewAngle, getUpdateXmpData, getUseRawData, getVerticalResolution, getXmpData, isRawDataAvailable, isUsePalette, loadArgb32Pixels, loadArgb64Pixels, loadCmyk32Pixels, loadCmykPixels, loadPartialArgb32Pixels, loadPartialPixels, loadPixels, loadRawData, loadRawData, normalizeAngle, normalizeAngle, readArgb32ScanLine, readScanLine, replaceColor, replaceColor, replaceNonTransparentColors, replaceNonTransparentColors, rotate, saveArgb32Pixels, saveCmyk32Pixels, saveCmykPixels, savePixels, saveRawData, setArgb32Pixel, setHorizontalResolution, setPalette, setPixel, setPremultiplyComponents, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setUpdateXmpData, setUseRawData, setVerticalResolution, setXmpData, toBitmap, writeArgb32ScanLine, writeScanLinecanLoad, canLoad, canLoad, canLoad, canSave, create, create, create, getBounds, getBufferSizeHint, getContainer, getDefaultOptions, getFileFormat, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getOriginalOptions, getPalette, getProgressEventHandler, getProgressEventHandlerInfo, getProportionalHeight, getProportionalWidth, getSize, isAutoAdjustPalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, save, save, save, setAutoAdjustPalette, setBufferSizeHint, setInterruptMonitor, setPalettegetDataStreamContainer, save, save, saveclose, dispose, getDisposedpublic int getBitsPerPixel()
Gets the image bits per pixel count.
getBitsPerPixel in class Imagepublic int getWidth()
Gets the image width.
getWidth in interface IObjectWithBoundsgetWidth in class Imagepublic int getHeight()
Gets the image height.
getHeight in interface IObjectWithBoundsgetHeight in class Imagepublic final int getFrameTime()
Gets the frame duration.
getFrameTime in interface IAnimationFramepublic final void setFrameTime(int value)
Sets the frame duration.
value - the frame duration.public final int getFrameTop()
Gets the frame top offset.
getFrameTop in interface IAnimationFramepublic final int getFrameLeft()
Gets the frame left offset.
getFrameLeft in interface IAnimationFramepublic final int getDisposalMethod()
Gets the disposal method.
getDisposalMethod in interface IAnimationFrameAnimationDisposalMethodspublic boolean hasTransparentColor()
Gets a value indicating whether image has transparent color.
hasTransparentColor in class RasterImagepublic void setTransparentColor(boolean value)
A value indicating whether image has transparent color.
setTransparentColor in class RasterImagevalue - a value indicating whether image has transparent color.public boolean hasAlpha()
Get a value indicating whether this instance has alpha.
hasAlpha in class RasterImagetrue if this instance has alpha; otherwise, false.public Color getTransparentColor()
Gets the transparent color.
getTransparentColor in class RasterImagepublic void setTransparentColor(Color value)
The transparent color.
setTransparentColor in class RasterImagevalue - the transparent color.public boolean hasBackgroundColor()
Gets a value indicating whether has background color.
hasBackgroundColor in class Imagepublic void setBackgroundColor(boolean value)
A value indicating whether has background color.
setBackgroundColor in class Imagevalue - a value indicating whether has background color.public Color getBackgroundColor()
Gets the background color.
getBackgroundColor in class Imagepublic void setBackgroundColor(Color value)
The background color.
setBackgroundColor in class Imagevalue - the background color.public final RasterImage getFullFrame()
Gets the full frame.
getFullFrame in interface IAnimationFramepublic void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer(DataStreamSupporter.getDataStreamContainer()/DataStreamSupporter.setDataStreamContainer_internalized(StreamContainer)).
cacheData in class RasterCachedImageCopyright (c) 2008-2022 Aspose Pty Ltd. All Rights Reserved.