Table of Contents

Class GifPlainTextRenderingBlock

Namespace
Aspose.Imaging.FileFormats.Gif.Blocks
Assembly
Aspose.Imaging.dll

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.

public class GifPlainTextRenderingBlock : GifBlock, IGifBlock
Inheritance
GifPlainTextRenderingBlock
Implements
Inherited Members

Constructors

GifPlainTextRenderingBlock()

Initializes a new instance of the GifPlainTextRenderingBlock class.

public GifPlainTextRenderingBlock()

GifPlainTextRenderingBlock(ushort, ushort, ushort, ushort, byte, byte, byte, byte, byte[])

Initializes a new instance of the GifPlainTextRenderingBlock class.

public GifPlainTextRenderingBlock(ushort textGridLeftPosition, ushort textGridTopPosition, ushort textGridWidth, ushort textGridHeight, byte characterCellWidth, byte characterCellHeight, byte textForegroundColorIndex, byte textBackgroundColorIndex, byte[] data)

Parameters

textGridLeftPosition ushort

The text grid left position.

textGridTopPosition ushort

The text grid top position.

textGridWidth ushort

The text grid width.

textGridHeight ushort

The text grid height.

characterCellWidth byte

The character cell width.

characterCellHeight byte

The character cell height.

textForegroundColorIndex byte

The foreground color index.

textBackgroundColorIndex byte

The background color index.

data byte[]

The plain text data.

Fields

BlockSize

The overall block size.

public const byte BlockSize = 15

Field Value

byte

ExtensionLabel

The plain text extension label.

public const byte ExtensionLabel = 1

Field Value

byte

SubBlockSize

The size of the sub block.

public const byte SubBlockSize = 12

Field Value

byte

Properties

CharacterCellHeight

Gets or sets the character cell height, in pixels, of each cell in the grid.

public byte CharacterCellHeight { get; set; }

Property Value

byte

The character cell height.

CharacterCellWidth

Gets or sets the character cell width, in pixels, of each cell in the grid.

public byte CharacterCellWidth { get; set; }

Property Value

byte

The character cell width.

PlainTextData

Gets or sets the plain text data.

public byte[] PlainTextData { get; set; }

Property Value

byte[]

The plain text data.

TextBackgroundColorIndex

Gets or sets the index of the color in the global color palette used to draw the text background.

public byte TextBackgroundColorIndex { get; set; }

Property Value

byte

The background color index.

TextForegroundColorIndex

Gets or sets the index of the color in the global color palette used to draw the text foreground.

public byte TextForegroundColorIndex { get; set; }

Property Value

byte

The foreground color index.

TextGridHeight

Gets or sets the text grid height in pixels

public ushort TextGridHeight { get; set; }

Property Value

ushort

The text grid height in pixels.

TextGridLeftPosition

Gets or sets the text grid left position.

public ushort TextGridLeftPosition { get; set; }

Property Value

ushort

The text grid left position.

Remarks

This is a column number, in pixels, of the left edge of the text grid, with respect to the left edge of the logical screen.

TextGridTopPosition

Gets or sets the text grid top position.

public ushort TextGridTopPosition { get; set; }

Property Value

ushort

The text grid top position.

Remarks

This is a row number, in pixels, of the top edge of the text grid, with respect to the top edge of the logical screen.

TextGridWidth

Gets or sets the text grid with in pixels

public ushort TextGridWidth { get; set; }

Property Value

ushort

The text grid width in pixels.

Methods

Save(Stream)

Saves the block to the specified stream.

public override void Save(Stream stream)

Parameters

stream Stream

The stream to save data to.