GifGraphicsControlBlock Class
Contents
[
Hide
]Summary: Gif graphics control block.
Module: aspose.imaging.fileformats.gif.blocks
Full Name: aspose.imaging.fileformats.gif.blocks.GifGraphicsControlBlock
Inheritance: IGifBlock, GifBlock
Aspose.Imaging Version: 24.7.0
Constructors
Name | Description |
---|---|
GifGraphicsControlBlock() | Initializes a new instance of the GifGraphicsControlBlock class. |
GifGraphicsControlBlock(delay_time, has_transparent_color, transparent_color_index, requires_user_input, disposal_method) | Initializes a new instance of the GifGraphicsControlBlock class. |
GifGraphicsControlBlock(flags, delay_time, transparent_color_index) | Initializes a new instance of the GifGraphicsControlBlock class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
BLOCK_HEADER_SIZE [static] | int | r | Specifies the block header size. |
EXTENSION_INTRODUCER [static] | byte | r | Extension introducer. |
EXTENSION_LABEL [static] | byte | r | Extension label. |
SUB_BLOCK_SIZE [static] | byte | r | Gets the sub-block size. |
delay_time | ushort | r/w | Gets or sets the frame delay time expressed in 1/100 seconds. |
disposal_method | DisposalMethod | r/w | Gets or sets the disposal method. |
flags | byte | r/w | Gets or sets the flags. |
has_transparent_color | bool | r/w | Gets or sets a value indicating whether graphics control block has transparent color. |
is_changed | bool | r/w | Gets or sets a value indicating whether block has changed and requires save. |
transparent_color_index | byte | r/w | Gets or sets the transparent color index. |
user_input_expected | bool | r/w | Gets or sets a value indicating whether user input is expected. |
Methods
Name | Description |
---|---|
create_flags(has_transparent_color, requires_user_input, disposal_method) | Creates the flags. |
save(stream) | Saves the block to the specified stream. |
Constructor: GifGraphicsControlBlock()
GifGraphicsControlBlock()
Initializes a new instance of the GifGraphicsControlBlock class.
Constructor: GifGraphicsControlBlock(delay_time, has_transparent_color, transparent_color_index, requires_user_input, disposal_method)
GifGraphicsControlBlock(delay_time, has_transparent_color, transparent_color_index, requires_user_input, disposal_method)
Initializes a new instance of the GifGraphicsControlBlock class.
Parameters:
Parameter | Type | Description |
---|---|---|
delay_time | ushort | The delay time expressed in 1/100 seconds. |
has_transparent_color | bool | if set to |
transparent_color_index | byte | The transparent color index. |
requires_user_input | bool | if set to |
disposal_method | DisposalMethod | The disposal method. |
Constructor: GifGraphicsControlBlock(flags, delay_time, transparent_color_index)
GifGraphicsControlBlock(flags, delay_time, transparent_color_index)
Initializes a new instance of the GifGraphicsControlBlock class.
Parameters:
Parameter | Type | Description |
---|---|---|
flags | byte | The flags. |
delay_time | ushort | The delay time expressed in 1/100 seconds. |
transparent_color_index | byte | The transparent color index. |
Method: create_flags(has_transparent_color, requires_user_input, disposal_method) [static]
create_flags(has_transparent_color, requires_user_input, disposal_method)
Creates the flags.
Parameters:
Parameter | Type | Description |
---|---|---|
has_transparent_color | bool | if set to |
requires_user_input | bool | if set to |
disposal_method | DisposalMethod | The disposal method. |
Returns
Type | Description |
---|---|
byte | The generated flags. |
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. |