GifCommentBlock
Inheritance: java.lang.Object, com.aspose.imaging.fileformats.gif.GifBlock
public class GifCommentBlock extends GifBlock
Gif 注释块.
构造函数
| 构造函数 | 描述 |
|---|---|
| GifCommentBlock() | 初始化 GifCommentBlock 类的新实例。 |
| GifCommentBlock(String comment) | 初始化 GifCommentBlock 类的新实例。 |
字段
| 字段 | 描述 |
|---|---|
| EXTENSION_LABEL | Gif 注释块扩展标签。 |
| 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:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | java.lang.String |