GifCommentBlock Class
Contents
[
Hide
]Summary: Gif comment block.
Module: aspose.imaging.fileformats.gif.blocks
Full Name: aspose.imaging.fileformats.gif.blocks.GifCommentBlock
Inheritance: IGifBlock, GifBlock
Constructors
| Name | Description |
|---|---|
| GifCommentBlock() | Initializes a new instance of the GifCommentBlock class. |
| GifCommentBlock(comment) | Initializes a new instance of the GifCommentBlock class. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| BLOCK_HEADER_SIZE [static] | int | r | Defines the block header size. |
| EXTENSION_INTRODUCER [static] | System.Byte | r | Extension introducer. |
| EXTENSION_LABEL [static] | System.Byte | r | Gif comment block extension label. |
| comment | string | r/w | Gets or sets the comment. Note that comment must use ASCII encoding and will be stored accordingly. |
| is_changed | bool | r/w | Gets or sets a value indicating whether block has changed and requires save. |
Methods
| Name | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| comment | string | The comment. |
Method: save(stream)
save(stream)
Saves the block to the specified stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | _io.BufferedRandom | The stream to save data to. |