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, rotateFlip
crop, 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, writeScanLine
canLoad, 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, setPalette
getDataStreamContainer, save, save, save
close, dispose, getDisposed
public int getBitsPerPixel()
Gets the image bits per pixel count.
getBitsPerPixel
in class Image
public int getWidth()
Gets the image width.
getWidth
in interface IObjectWithBounds
getWidth
in class Image
public int getHeight()
Gets the image height.
getHeight
in interface IObjectWithBounds
getHeight
in class Image
public final int getFrameTime()
Gets the frame duration.
getFrameTime
in interface IAnimationFrame
public 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 IAnimationFrame
public final int getFrameLeft()
Gets the frame left offset.
getFrameLeft
in interface IAnimationFrame
public final int getDisposalMethod()
Gets the disposal method.
getDisposalMethod
in interface IAnimationFrame
AnimationDisposalMethods
public boolean hasTransparentColor()
Gets a value indicating whether image has transparent color.
hasTransparentColor
in class RasterImage
public void setTransparentColor(boolean value)
A value indicating whether image has transparent color.
setTransparentColor
in class RasterImage
value
- a value indicating whether image has transparent color.public boolean hasAlpha()
Get a value indicating whether this instance has alpha.
hasAlpha
in class RasterImage
true
if this instance has alpha; otherwise, false
.public Color getTransparentColor()
Gets the transparent color.
getTransparentColor
in class RasterImage
public void setTransparentColor(Color value)
The transparent color.
setTransparentColor
in class RasterImage
value
- the transparent color.public boolean hasBackgroundColor()
Gets a value indicating whether has background color.
hasBackgroundColor
in class Image
public void setBackgroundColor(boolean value)
A value indicating whether has background color.
setBackgroundColor
in class Image
value
- a value indicating whether has background color.public Color getBackgroundColor()
Gets the background color.
getBackgroundColor
in class Image
public void setBackgroundColor(Color value)
The background color.
setBackgroundColor
in class Image
value
- the background color.public final RasterImage getFullFrame()
Gets the full frame.
getFullFrame
in interface IAnimationFrame
public 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 RasterCachedImage