Table of Contents

Class GIFDecoder

Namespace
VisioForge.Core.GIF
Assembly
VisioForge.Core.dll

Decodes gifs to provides information.

public class GIFDecoder : IDisposable

Inheritance

Implements

Inherited Members

Constructors

GIFDecoder(string)

Initializes a new instance of the VisioForge.Core.GIF.GIFDecoder class.

public GIFDecoder(string filename)

Parameters

filename string

The file name to decode.

Properties

AnimationLength

Gets or sets the animation length.

public TimeSpan AnimationLength { get; set; }

Property Value

TimeSpan

Frames

Gets the GIF frames.

public List<GIFFrame> Frames { get; }

Property Value

List<GIFFrame>

Height

Gets or sets the image height.

public int Height { get; set; }

Property Value

int

IsAnimated

Gets or sets a value indicating whether the image is animated.

public bool IsAnimated { get; set; }

Property Value

bool

LoadedToRGB32

Gets a value indicating whether the image is loaded to RGB32.

public bool LoadedToRGB32 { get; }

Property Value

bool

Width

Gets or sets the image width.

public int Width { get; set; }

Property Value

int

Methods

Clear()

Clears data.

public void Clear()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Dispose()

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

public void Dispose()

~GIFDecoder()

Finalizes an instance of the VisioForge.Core.GIF.GIFDecoder class.

protected ~GIFDecoder()

ResizeFrames(int, int, GIFResizeStretchMode)

Resizes the frames.

public void ResizeFrames(int width, int height, GIFResizeStretchMode mode)

Parameters

width int

The width.

height int

The height.

mode GIFResizeStretchMode

The mode.