Table of Contents

Class GifAnimation

Namespace
DrawnUi.Controls
Assembly
DrawnUi.Maui.dll
public class GifAnimation : IDisposable
Inheritance
GifAnimation
Implements
Inherited Members
Extension Methods

Fields

LockFrames

protected object LockFrames

Field Value

object

Properties

DurationMs

public int DurationMs { get; protected set; }

Property Value

int

Frame

Current frame bitmap, can change with SeekFrame method

public SKBitmap Frame { get; protected set; }

Property Value

SKBitmap

Frames

protected SKBitmap[] Frames { get; set; }

Property Value

SKBitmap[]

FramesPositionsMs

protected int[] FramesPositionsMs { get; set; }

Property Value

int[]

Height

protected int Height { get; set; }

Property Value

int

IsDisposed

public bool IsDisposed { get; set; }

Property Value

bool

TotalFrames

public int TotalFrames { get; protected set; }

Property Value

int

Width

protected int Width { get; set; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public virtual void Dispose()

GetFrameNumber(double)

public int GetFrameNumber(double msTime)

Parameters

msTime double

Returns

int

LoadFromStream(Stream)

public void LoadFromStream(Stream stream)

Parameters

stream Stream

SeekFrame(int)

Select frame. If you pass a negative value the last frame will be set.

public void SeekFrame(int frame)

Parameters

frame int