GifPlainTextRenderingBlock 类

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

Name描述
GifPlainTextRenderingBlock()初始化 GifPlainTextRenderingBlock 类的新实例。
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 类的新实例。

Properties

NameTypeAccess描述
BLOCK_SIZE [static]System.Byter整体块大小。
EXTENSION_INTRODUCER [static]System.Byter扩展引入器。
EXTENSION_LABEL [static]System.Byter纯文本扩展标签。
SUB_BLOCK_SIZE [static]System.Byter子块的大小。
character_cell_heightSystem.Byter/w获取或设置网格中每个单元格的字符单元高度(像素)。
character_cell_widthSystem.Byter/w获取或设置网格中每个单元格的字符单元宽度(像素)。
is_changedboolr/w获取或设置一个值,指示块是否已更改并需要保存。
plain_text_dataSystem.Byter/w获取或设置纯文本数据。
text_background_color_indexSystem.Byter/w获取或设置全局调色板中用于绘制文本背景的颜色索引。
text_foreground_color_indexSystem.Byter/w获取或设置全局调色板中用于绘制文本前景的颜色索引。
text_grid_heightintr/w获取或设置文本网格的高度(像素)
text_grid_left_positionintr/w获取或设置文本网格的左侧位置。
text_grid_top_positionintr/w获取或设置文本网格的顶部位置。
text_grid_widthintr/w获取或设置文本网格的宽度(像素)

Methods

Name描述
save(stream)将块保存到指定的流。

Constructor: GifPlainTextRenderingBlock()

 GifPlainTextRenderingBlock() 

初始化 GifPlainTextRenderingBlock 类的新实例。

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) 

初始化 GifPlainTextRenderingBlock 类的新实例。

Parameters:

参数TypeDescription
text_grid_left_positionint文本网格左侧位置。
text_grid_top_positionint文本网格顶部位置。
text_grid_widthint文本网格宽度。
text_grid_heightint文本网格高度。
character_cell_widthSystem.Byte字符单元格宽度。
character_cell_heightSystem.Byte字符单元格高度。
text_foreground_color_indexSystem.Byte前景色索引。
text_background_color_indexSystem.Byte背景色索引。
数据System.Byte纯文本数据。

Method: save(stream)

 save(stream) 

将块保存到指定的流。

Parameters:

参数TypeDescription
_io.BufferedRandom保存数据的流。