[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcGifReader

GcGifReader Class

Allows reading images from a multi-page GIF file/stream.

Inheritance
GcGifReader
Implements
Namespace: GrapeCity.Documents.Imaging
Assembly: DS.Documents.Imaging.dll
Syntax
public class GcGifReader : IDisposable
Public Class GcGifReader
    Implements IDisposable

Constructors

Name Description
GcGifReader(Stream, bool, int)

Initializes a new instance of GcGifReader class and assigns the input stream.

GcGifReader(string, int)

Initializes a new instance of GcGifReader class and assigns the input file.

Properties

Name Description
CommentCount

Gets the number of Comment Extensions in the source GIF file.

DpiX

Gets the horizontal DPI of the Logical Screen.

DpiY

Gets the vertical DPI of the Logical Screen.

FilePath

If possible, gets full path to the associated .gif file.

Frames

Gets the list of frames in the associated GIF file.

HasGlobalPalette

Gets a value indicating if there is the Global Color Table in the GIF file.

IccProfileData

Gets or sets the raw ICC profile data for the frames.

IsDisposed

Gets a value indicating whether the GcGifReader has been disposed of.

LogicalScreenHeight

Gets the height, in pixels, of the Logical Screen where the frames will be rendered.

LogicalScreenWidth

Gets the width, in pixels, of the Logical Screen where the frames will be rendered.

LoopCount

Gets the number of iterations the animated GIF should be executed. 0 means infinite loop.

OwnStream

Gets a value indicating if the associated stream should be closed when the GcGifReader is disposed.

PixelAspectRatio

Gets the quotient of the pixel's width over its height.

Stream

Gets the Stream associated with GcGifReader.

StreamStartPosition

Gets the start position in the associated Stream.

Methods

Name Description
ApplyLicenseKey(string)

Applies a license key to an instance of GcGifReader.

Dispose()

Clean up any resources being used.

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

GetComment(Encoding, int)

If the Comment Extension is present in the source GIF file this method decodes the comment using the specified Encoding and returns it as a string.

GetCommentData(int)

If the Comment Extension is present in the source GIF file this method returns the comment data as is, without decoding.

GetGlobalPalette()

Returns a palette with sorted opaque colors in 32-bit ARGB format retrieved from the Global Color Table.