Class GifPlainTextRenderingBlock

Class GifPlainTextRenderingBlock

Namespace: Aspose.Imaging.FileFormats.Gif.Blocks
Assembly: Aspose.Imaging.dll (25.2.0)

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.

[JsonObject(MemberSerialization.OptIn)]
public class GifPlainTextRenderingBlock : GifBlock, IGifBlock

Inheritance

objectGifBlockGifPlainTextRenderingBlock

Implements

IGifBlock

Inherited Members

GifBlock.ExtensionIntroducer, GifBlock.Save(Stream), GifBlock.IsChanged, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

GifPlainTextRenderingBlock()

Initializes a new instance of the Aspose.Imaging.FileFormats.Gif.Blocks.GifPlainTextRenderingBlock class.

public GifPlainTextRenderingBlock()

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

Initializes a new instance of the Aspose.Imaging.FileFormats.Gif.Blocks.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

CharacterCellWidth

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

public byte CharacterCellWidth { get; set; }

Property Value

byte

PlainTextData

Gets or sets the plain text data.

public byte[] PlainTextData { get; set; }

Property Value

byte[]

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

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

TextGridHeight

Gets or sets the text grid height in pixels

public ushort TextGridHeight { get; set; }

Property Value

ushort

TextGridLeftPosition

Gets or sets the text grid left position.

public ushort TextGridLeftPosition { get; set; }

Property Value

ushort

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

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

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.