[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcGifWriter

GcGifWriter Class

Allows creating a multi-frame GIF file.

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

Constructors

Name Description
GcGifWriter(Stream, bool)

Initializes a new instance of GcGifWriter class and sets the output stream.

GcGifWriter(string)

Initializes a new instance of GcGifWriter class and sets the output file.

Properties

Name Description
AllowAddingTransparentColor

Gets or sets a value indicating if a transparent color should be added to the Global and Local Color Tables, if the number of opaque colors is less than 256.

Comment

Gets or sets the optional GIF comment.

CommentEncoding

Gets or sets the encoding for the Comment string, Encoding.UTF8 is used by default.

GlobalPalette

Gets or sets the palette with opaque colors in 32-bit ARGB format to be stored as the Global Color Table.

If the palette contains 255 or less elements, the transparent color can be appended to the Global Color Table.

Elements with index 256 and above are ignored.

IccProfileData

Gets or sets the raw ICC profile data for the frames. The value should be assigned before appending the first frame.

IsDisposed

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

LogicalScreenHeight

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

LogicalScreenWidth

Get or sets the width, in pixels, of the Logical Screen where the frames will be rendered.

LoopCount

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

NextFrameIndex

Gets the index of the next frame to be added.

PixelAspectRatio

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

Methods

Name Description
AppendFrame(BilevelBitmap, int, int, GifDisposalMethod, int, bool)

Writes the specified BilevelBitmap to the output stream as the next frame.

AppendFrame(GcBitmap, int, int, int, GifDisposalMethod, int, bool)

Writes the specified GcBitmap to the output stream as the next frame.

AppendFrame(GcBitmap, uint[], DitheringMethod, int, int, GifDisposalMethod, int, bool)

Writes the specified GcBitmap to the output stream as the next frame.

AppendFrame(GrayscaleBitmap, int, int, GifDisposalMethod, int, bool)

Writes the specified GrayscaleBitmap to the output stream as the next frame.

AppendFrame(Indexed4bppBitmap, int, int, GifDisposalMethod, int, bool)

Writes the specified Indexed4bppBitmap to the output stream as the next frame.

AppendFrame(Indexed8bppBitmap, int, int, GifDisposalMethod, int, bool)

Writes the specified Indexed8bppBitmap to the output stream as the next frame.

Dispose()

Clean up any resources being used.

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

SetDpi(float, float)

Updates the PixelAspectRatio property based on the specified horizontal and vertical resolutions.