Class GIFDecoder
- Namespace
- VisioForge.Core.GIF
- Assembly
- VisioForge.Core.dll
Decodes gifs to provides information.
public class GIFDecoder : IDisposableInheritance
Implements
Inherited Members
Constructors
GIFDecoder(string)
Initializes a new instance of the VisioForge.Core.GIF.GIFDecoder class.
public GIFDecoder(string filename)Parameters
filenamestring-
The file name to decode.
Properties
AnimationLength
Gets or sets the animation length.
public TimeSpan AnimationLength { get; set; }Property Value
Frames
Gets the GIF frames.
public List<GIFFrame> Frames { get; }Property Value
Height
Gets or sets the image height.
public int Height { get; set; }Property Value
IsAnimated
Gets or sets a value indicating whether the image is animated.
public bool IsAnimated { get; set; }Property Value
LoadedToRGB32
Gets a value indicating whether the image is loaded to RGB32.
public bool LoadedToRGB32 { get; }Property Value
Width
Gets or sets the image width.
public int Width { get; set; }Property Value
Methods
Clear()
Clears data.
public void Clear()Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto 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
widthint-
The width.
heightint-
The height.
modeGIFResizeStretchMode-
The mode.