GifPlainTextRenderingBlock Class
Contents
[
Hide
]Summary: Gif plain text extension block. The plain text extension contains textual data and the
parameters necessary to render that data as a graphic, in a simple form.
Module: aspose.imaging.fileformats.gif.blocks
Full Name: aspose.imaging.fileformats.gif.blocks.GifPlainTextRenderingBlock
Inheritance: IGifBlock, GifBlock
Aspose.Imaging Version: 24.5.0
Constructors
Name | Description |
---|---|
GifPlainTextRenderingBlock() | Initializes a new instance of the GifPlainTextRenderingBlock class. |
GifPlainTextRenderingBlock(text_grid_left_position, text_grid_top_position, text_grid_width, text_grid_height, character_cell_width, character_cell_height, text_foreground_color_index, text_background_color_index, data) | Initializes a new instance of the GifPlainTextRenderingBlock class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
BLOCK_SIZE [static] | byte | r | The overall block size. |
EXTENSION_INTRODUCER [static] | byte | r | Extension introducer. |
EXTENSION_LABEL [static] | byte | r | The plain text extension label. |
SUB_BLOCK_SIZE [static] | byte | r | The size of the sub block. |
character_cell_height | byte | r/w | Gets or sets the character cell height, in pixels, of each cell in the grid. |
character_cell_width | byte | r/w | Gets or sets the character cell width, in pixels, of each cell in the grid. |
is_changed | bool | r/w | Gets or sets a value indicating whether block has changed and requires save. |
plain_text_data | byte | r/w | Gets or sets the plain text data. |
text_background_color_index | byte | r/w | Gets or sets the index of the color in the global color palette used to draw the text background. |
text_foreground_color_index | byte | r/w | Gets or sets the index of the color in the global color palette used to draw the text foreground. |
text_grid_height | ushort | r/w | Gets or sets the text grid height in pixels |
text_grid_left_position | ushort | r/w | Gets or sets the text grid left position. |
text_grid_top_position | ushort | r/w | Gets or sets the text grid top position. |
text_grid_width | ushort | r/w | Gets or sets the text grid with in pixels |
Methods
Name | Description |
---|---|
save(stream) | Saves the block to the specified stream. |
Constructor: GifPlainTextRenderingBlock()
GifPlainTextRenderingBlock()
Initializes a new instance of the GifPlainTextRenderingBlock class.
Constructor: GifPlainTextRenderingBlock(text_grid_left_position, text_grid_top_position, text_grid_width, text_grid_height, character_cell_width, character_cell_height, text_foreground_color_index, text_background_color_index, data)
GifPlainTextRenderingBlock(text_grid_left_position, text_grid_top_position, text_grid_width, text_grid_height, character_cell_width, character_cell_height, text_foreground_color_index, text_background_color_index, data)
Initializes a new instance of the GifPlainTextRenderingBlock class.
Parameters:
Parameter | Type | Description |
---|---|---|
text_grid_left_position | ushort | The text grid left position. |
text_grid_top_position | ushort | The text grid top position. |
text_grid_width | ushort | The text grid width. |
text_grid_height | ushort | The text grid height. |
character_cell_width | byte | The character cell width. |
character_cell_height | byte | The character cell height. |
text_foreground_color_index | byte | The foreground color index. |
text_background_color_index | byte | The background color index. |
data | byte | The plain text data. |
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. |