public class ApngFrame extends RasterCachedImage implements IAnimationFrame
Craft animated PNG (APNG) image frames from single-page raster images with our API. Seamlessly set animation and frame duration, program the number of frames, and adjust gamma and contrast levels, ensuring captivating and customizable animations tailored to your vision.
| 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()). |
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.
|
boolean |
isUseAlphaBlending()
Gets a value indicating whether [use alpha blending].
|
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, analyzePercentageDigitalSignature, autoBrightnessContrast, binarizeBradley, binarizeBradley, binarizeFixed, binarizeOtsu, blend, crop, dither, embedDigitalSignature, grayscale, isCached, isDigitalSigned, normalizeHistogram, resize, resize, rotate, rotateFlipautoRotate, blend, blend, blend, dither, filter, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getHorizontalResolution, getImageOpacity, getModifyDate, getPixel, getPremultiplyComponents, getRawCustomColorConverter, getRawDataFormat, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getRawLineSize, getSkewAngle, getUpdateXmpData, getUseRawData, getVerticalResolution, isDigitalSigned, isRawDataAvailable, isUsePalette, loadArgb32Pixels, loadArgb64Pixels, loadCmyk32Pixels, loadCmykPixels, loadPartialArgb32Pixels, loadPartialArgb64Pixels, loadPartialPixels, loadPixels, loadRawData, loadRawData, normalizeAngle, normalizeAngle, readArgb32ScanLine, readScanLine, removeMetadata, replaceColor, replaceColor, replaceNonTransparentColors, replaceNonTransparentColors, rotate, saveArgb32Pixels, saveCmyk32Pixels, saveCmykPixels, savePixels, saveRawData, setArgb32Pixel, setHorizontalResolution, setPalette, setPixel, setPremultiplyComponents, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setUpdateXmpData, setUseRawData, setVerticalResolution, toBitmap, writeArgb32ScanLine, writeScanLinecanLoad, canLoad, canLoad, canLoad, canSave, create, create, create, create, create, create, create, crop, getBounds, getBufferSizeHint, getContainer, getDefaultOptions, getExifData, getFileFormat, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getIProgressEventHandler, getMetadata, getOriginalOptions, getPalette, getProgressEventHandlerInfo, getProportionalHeight, getProportionalWidth, getSerializedStream, getSize, getXmpData, isAutoAdjustPalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, save, save, save, setAutoAdjustPalette, setBufferSizeHint, setExifData, setInterruptMonitor, setPalette, setXmpData, trySetMetadatagetDataStreamContainer, save, save, saveclose, dispose, getDisposedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetXmpData, setXmpDatapublic 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 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(boolean value)
A value indicating whether image has transparent color.
setTransparentColor in class RasterImagevalue - a value indicating whether image has transparent color.public 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 Color getBackgroundColor()
Gets the background color.
getBackgroundColor in class Imagepublic void setBackgroundColor(boolean value)
A value indicating whether has background color.
setBackgroundColor in class Imagevalue - a value indicating whether it has background color.public void setBackgroundColor(Color value)
The background color.
setBackgroundColor in class Imagevalue - the background color.public final boolean isUseAlphaBlending()
Gets a value indicating whether [use alpha blending].
Value:true if [use alpha blending]; otherwise, false.isUseAlphaBlending in interface IAnimationFramepublic 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()).
cacheData in class RasterCachedImageCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.