GifCommentBlock

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

public class GifCommentBlock extends GifBlock

Gif 注释块.

构造函数

构造函数描述
GifCommentBlock()初始化 GifCommentBlock 类的新实例。
GifCommentBlock(String comment)初始化 GifCommentBlock 类的新实例。

字段

字段描述
EXTENSION_LABELGif 注释块扩展标签。
BLOCK_HEADER_SIZE定义块头部大小。

方法

方法描述
getComment()获取或设置注释。
setComment(String value)获取或设置注释。

GifCommentBlock()

public GifCommentBlock()

初始化 GifCommentBlock 类的新实例。

GifCommentBlock(String comment)

public GifCommentBlock(String comment)

初始化 GifCommentBlock 类的新实例。

Parameters:

参数类型描述
注释java.lang.String注释。

EXTENSION_LABEL

public static final byte EXTENSION_LABEL

Gif 注释块扩展标签。

BLOCK_HEADER_SIZE

public static final int BLOCK_HEADER_SIZE

定义块头部大小。

getComment()

public String getComment()

获取或设置注释。注意,注释必须使用 ASCII 编码,并将相应存储。

值:注释。

Returns: java.lang.String

setComment(String value)

public void setComment(String value)

获取或设置注释。注意,注释必须使用 ASCII 编码,并将相应存储。

值:注释。

Parameters:

参数类型描述
valuejava.lang.String