# RasterAnimationFrame

Describes one complete RGBA animation canvas and its display duration.

 Struct  

`ChartForgeX.Raster`

**Namespace**

`ChartForgeX.Raster`

**Assembly**

`ChartForgeX`

**Source**

[RasterAnimationFrame.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationFrame.cs#L12)

**Base**

`ValueType`

**Modifiers**

sealed

Describes one complete RGBA animation canvas and its display duration.

## Inheritance

- ValueType
- RasterAnimationFrame

## Usage

 Explore 5 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.

### Returned or exposed by 2

- Method [RasterAnimationSource.GetFrame](/api/chartforgex-raster-rasteranimationsource/#method-getframe-int32-threading-cancellationtoken)
- Method [PreparedVisualStory.Frames](/api/chartforgex-stories-preparedvisualstory/#method-frames-chartforgex-stories-visualstoryframeoptions-threading-cancellationtoken)

### Accepted by parameters 3

- Method [RasterAnimationEncoder.Encode](/api/chartforgex-raster-rasteranimationencoder/#method-encode-collections-generic-ireadonlylist-chartforgex-raster-rasteranimationframe-chartforgex-raster-rasteranimationformat-chartforgex-raster-rasteranimationoptions-threading-cancellationtoken) parameter `frames`
- 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 `frames`
- Constructor [RasterAnimationSource.RasterAnimationSource](/api/chartforgex-raster-rasteranimationsource/#constructor-ctor-int32-int32-int32-func-system-int32-system-threading-cancellationtoken-chartforgex-raster-rasteranimationframe-int64) parameter `renderFrame`

 Filter members   

    Show inherited   

 

## Constructors

 `public RasterAnimationFrame(RgbaImage image, TimeSpan duration)` [#](#constructor-ctor-chartforgex-raster-rgbaimage-timespan) 

[RasterAnimationFrame.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationFrame.cs#L12)

Initializes a frame using a caller-owned RGBA pixel buffer.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The complete canvas. All frames in an animation must have matching dimensions.

**duration System.TimeSpan required**

A nonnegative display duration. Zero preserves a container's zero frame delay.

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from ValueType

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public RgbaImage Image { get; }` [#](#property-image) 

[RasterAnimationFrame.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationFrame.cs#L21)

Gets the complete frame canvas.

 `public TimeSpan Duration { get; }` [#](#property-duration) 

[RasterAnimationFrame.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RasterAnimationFrame.cs#L25)

Gets the nonnegative frame display duration before the next frame or playback completion.

<!-- PowerForge markdown artifact sha256:4D50B406AFBEC1162A7A70DF830AB6EEAFEAC2B5D33ED4135E9BE24ECDBA7BF2 -->
