GifCommentBlock Class

Summary: Gif comment block.

Module: aspose.imaging.fileformats.gif.blocks

Full Name: aspose.imaging.fileformats.gif.blocks.GifCommentBlock

Inheritance: IGifBlock, GifBlock

Aspose.Imaging Version: 24.7.0

Constructors

NameDescription
GifCommentBlock()Initializes a new instance of the GifCommentBlock class.
GifCommentBlock(comment)Initializes a new instance of the GifCommentBlock class.

Properties

NameTypeAccessDescription
BLOCK_HEADER_SIZE [static]intrDefines the block header size.
EXTENSION_INTRODUCER [static]byterExtension introducer.
EXTENSION_LABEL [static]byterGif comment block extension label.
commentstringr/wGets or sets the comment. Note that comment must use ASCII encoding and will be stored accordingly.
is_changedboolr/wGets or sets a value indicating whether block has changed and requires save.

Methods

NameDescription
save(stream)Saves the block to the specified stream.

Constructor: GifCommentBlock()

 GifCommentBlock() 

Initializes a new instance of the GifCommentBlock class.

Constructor: GifCommentBlock(comment)

 GifCommentBlock(comment) 

Initializes a new instance of the GifCommentBlock class.

Parameters:

ParameterTypeDescription
commentstringThe comment.

Method: save(stream)

 save(stream) 

Saves the block to the specified stream.

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream to save data to.