Class GIFDecoder
Decodes gifs to provides information.
Implements
Inherited Members
Namespace: VisioForge.Core.GIF
Assembly: VisioForge.Core.dll
Syntax
public class GIFDecoder : IDisposable
Constructors
GIFDecoder(string)
Initializes a new instance of the GIFDecoder class.
Declaration
public GIFDecoder(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The file name to decode. |
Properties
AnimationLength
Gets or sets the animation length.
Declaration
public TimeSpan AnimationLength { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Frames
Gets the GIF frames.
Declaration
public List<GIFFrame> Frames { get; }
Property Value
| Type | Description |
|---|---|
| List<GIFFrame> |
Height
Gets or sets the image height.
Declaration
public int Height { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
IsAnimated
Gets or sets a value indicating whether the image is animated.
Declaration
public bool IsAnimated { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LoadedToRGB32
Gets a value indicating whether the image is loaded to RGB32.
Declaration
public bool LoadedToRGB32 { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Width
Gets or sets the image width.
Declaration
public int Width { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Clear()
Clears data.
Declaration
public void Clear()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
|
~GIFDecoder()
Finalizes an instance of the GIFDecoder class.
Declaration
protected ~GIFDecoder()
ResizeFrames(int, int, GIFResizeStretchMode)
Resizes the frames.
Declaration
public void ResizeFrames(int width, int height, GIFResizeStretchMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The width. |
| int | height | The height. |
| GIFResizeStretchMode | mode | The mode. |