ApngOptions Class

Summary: The API for Animated PNG (Animated Portable Network Graphics) image file format
creation is a dynamic tool for developers seeking to generate captivating
animated images. With customizable options such as frame duration and the
number of times to loop, this API allows for fine-tuning animated content
according to specific needs. Whether creating engaging web graphics or
interactive visuals, you can leverage this API to seamlessly incorporate
APNG images with precise control over animation parameters.

Module: aspose.imaging.imageoptions

Full Name: aspose.imaging.imageoptions.ApngOptions

Inheritance: IHasXmpData, IHasMetadata, PngOptions

Aspose.Imaging Version: 24.7.0

Constructors

NameDescription
ApngOptions()Initializes a new instance of the ApngOptions class.

Properties

NameTypeAccessDescription
DEFAULT_COMPRESSION_LEVEL [static]intrThe default compression level.
bit_depthbyter/wGets or sets the bit depth values in range of 1, 2, 4, 8, 16.


Mind the next limits:


PngColorType.GRAYSCALE, PngColorType.INDEXED_COLOR support bit depth of 1, 2, 4, 8.


PngColorType.GRAYSCALE_WITH_ALPHA supports bit depth of 8.


PngColorType.TRUECOLOR, PngColorType.TRUECOLOR_WITH_ALPHA support bit depth of 8, 16.

buffer_size_hintintr/wGets or sets the buffer size hint which is defined max allowed size for all internal buffers.
color_typePngColorTyper/wGets or sets the type of the color.
compression_levelintr/wGets or sets the PngImage compression level in the range of 0-9. The higher the value - the more efficient the compression.
default_frame_timeuintr/wGets or sets the default frame duration.
disposedboolrGets a value indicating whether this instance is disposed.
filter_typePngFilterTyper/wGets or sets the filter type used during png file save process.
full_frameboolr/wGets or sets a value indicating whether [full frame].
keep_metadataboolr/wGets a value whether to keep original image metadata on export.
multi_page_optionsMultiPageOptionsr/wThe multipage options
num_playsintr/wGets or sets the number of times to loop animation.
0 indicates infinite looping.
paletteIColorPaletter/wGets or sets the color palette.
progressiveboolr/wGets or sets a value indicating whether a PngImage is progressive.
resolution_settingsResolutionSettingr/wGets or sets the resolution settings.
sourceSourcer/wGets or sets the source to create image in.
vector_rasterization_optionsVectorRasterizationOptionsr/wGets or sets the vector rasterization options.
xmp_dataXmpPacketWrapperr/wGets or sets Xmp data.

Methods

NameDescription
clone()Clones this instance.

Constructor: ApngOptions()

 ApngOptions() 

Initializes a new instance of the ApngOptions class.

Method: clone()

 clone() 

Clones this instance.

Returns

TypeDescription
ImageOptionsBaseReturns shallow copy of this instance