GifCommentBlock

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.gif.GifBlock

public class GifCommentBlock extends GifBlock

Gif comment block.

Constructors

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

Fields

FieldDescription
EXTENSION_LABELGif comment block extension label.
BLOCK_HEADER_SIZEDefines the block header size.

Methods

MethodDescription
getComment()Gets or sets the comment.
setComment(String value)Gets or sets the comment.

GifCommentBlock()

public GifCommentBlock()

Initializes a new instance of the GifCommentBlock class.

GifCommentBlock(String comment)

public GifCommentBlock(String comment)

Initializes a new instance of the GifCommentBlock class.

Parameters:

ParameterTypeDescription
commentjava.lang.StringThe comment.

EXTENSION_LABEL

public static final byte EXTENSION_LABEL

Gif comment block extension label.

BLOCK_HEADER_SIZE

public static final int BLOCK_HEADER_SIZE

Defines the block header size.

getComment()

public String getComment()

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

Value: The comment.

Returns: java.lang.String

setComment(String value)

public void setComment(String value)

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

Value: The comment.

Parameters:

ParameterTypeDescription
valuejava.lang.String