# RasterAnimationOptions

Controls animation playback and container encoding independently of frame durations.

 Class  

`ChartForgeX.Raster`

**Namespace**

`ChartForgeX.Raster`

**Assembly**

`ChartForgeX`

**Source**

[RasterAnimationOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationOptions.cs#L19)

**Modifiers**

sealed

Controls animation playback and container encoding independently of frame durations.

## Inheritance

- object
- RasterAnimationOptions

## Usage

 Explore 2 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 2

- Method [RasterAnimationEncoder.Encode](/api/chartforgex-raster-rasteranimationencoder/#method-encode-collections-generic-ireadonlylist-chartforgex-raster-rasteranimationframe-chartforgex-raster-rasteranimationformat-chartforgex-raster-rasteranimationoptions-threading-cancellationtoken) parameter `options`
- Method [RasterAnimationEncoder.WriteTo](/api/chartforgex-raster-rasteranimationencoder/#method-writeto-io-stream-collections-generic-ireadonlylist-chartforgex-raster-rasteranimationframe-chartforgex-raster-rasteranimationformat-chartforgex-raster-rasteranimationoptions-threading-cancellationtoken) parameter `options`

 Filter members   

    Show inherited   

 

## Constructors

 `public RasterAnimationOptions()` [#](#constructor-ctor) 

[RasterAnimationOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationOptions.cs#L19)

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public int PlayCount { get; set; }` [#](#property-playcount) 

[RasterAnimationOptions.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationOptions.cs#L15)

Gets or sets the total number of plays: zero repeats indefinitely, one plays once.

 `public int PngCompressionLevel { get; set; }` [#](#property-pngcompressionlevel) 

[RasterAnimationOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationOptions.cs#L19)

Gets or sets APNG deflate compression from 0 to 9. The default is 6.

<!-- PowerForge markdown artifact sha256:D47CB24C11C57ACE0177E958744B0C7B1A8FEE688C473AE6771432123E64D0E6 -->
