GifPlainTextRenderingBlock Class

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

Constructors

NameDescription
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

NameTypeAccessDescription
BLOCK_SIZE [static]System.ByterThe overall block size.
EXTENSION_INTRODUCER [static]System.ByterExtension introducer.
EXTENSION_LABEL [static]System.ByterThe plain text extension label.
SUB_BLOCK_SIZE [static]System.ByterThe size of the sub block.
character_cell_heightSystem.Byter/wGets or sets the character cell height, in pixels, of each cell in the grid.
character_cell_widthSystem.Byter/wGets or sets the character cell width, in pixels, of each cell in the grid.
is_changedboolr/wGets or sets a value indicating whether block has changed and requires save.
plain_text_dataSystem.Byter/wGets or sets the plain text data.
text_background_color_indexSystem.Byter/wGets or sets the index of the color in the global color palette used to draw the text background.
text_foreground_color_indexSystem.Byter/wGets or sets the index of the color in the global color palette used to draw the text foreground.
text_grid_heightintr/wGets or sets the text grid height in pixels
text_grid_left_positionintr/wGets or sets the text grid left position.
text_grid_top_positionintr/wGets or sets the text grid top position.
text_grid_widthintr/wGets or sets the text grid with in pixels

Methods

NameDescription
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:

ParameterTypeDescription
text_grid_left_positionintThe text grid left position.
text_grid_top_positionintThe text grid top position.
text_grid_widthintThe text grid width.
text_grid_heightintThe text grid height.
character_cell_widthSystem.ByteThe character cell width.
character_cell_heightSystem.ByteThe character cell height.
text_foreground_color_indexSystem.ByteThe foreground color index.
text_background_color_indexSystem.ByteThe background color index.
dataSystem.ByteThe plain text data.

Method: save(stream)

 save(stream) 

Saves the block to the specified stream.

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream to save data to.