Table of Contents

Class GifCommentBlock

Namespace
Aspose.Imaging.FileFormats.Gif.Blocks
Assembly
Aspose.Imaging.dll

Gif comment block.

public class GifCommentBlock : GifBlock, IGifBlock
Inheritance
GifCommentBlock
Implements
Inherited Members

Constructors

GifCommentBlock()

Initializes a new instance of the GifCommentBlock class.

public GifCommentBlock()

GifCommentBlock(string)

Initializes a new instance of the GifCommentBlock class.

public GifCommentBlock(string comment)

Parameters

comment string

The comment.

Fields

BlockHeaderSize

Defines the block header size.

public const int BlockHeaderSize = 2

Field Value

int

ExtensionLabel

Gif comment block extension label.

public const byte ExtensionLabel = 254

Field Value

byte

Properties

Comment

Gets or sets the comment. Note that comment must use ASCII encoding and will be stored accordingly.

public string Comment { get; set; }

Property Value

string

The comment.

Methods

Save(Stream)

Saves the block to the specified stream.

public override void Save(Stream stream)

Parameters

stream Stream

The stream to save data to.