Modifier and Type | Field and Description |
---|---|
static byte |
BLOCK_SIZE
The overall block size.
|
static byte |
EXTENSION_LABEL
The plain text extension label.
|
static byte |
SUB_BLOCK_SIZE
The size of the sub block.
|
EXTENSION_INTRODUCER
Constructor and Description |
---|
GifPlainTextRenderingBlock()
Initializes a new instance of the
GifPlainTextRenderingBlock class. |
GifPlainTextRenderingBlock(int textGridLeftPosition,
int textGridTopPosition,
int textGridWidth,
int textGridHeight,
byte characterCellWidth,
byte characterCellHeight,
byte textForegroundColorIndex,
byte textBackgroundColorIndex,
byte[] data)
Initializes a new instance of the
GifPlainTextRenderingBlock class. |
Modifier and Type | Method and Description |
---|---|
byte |
getCharacterCellHeight()
Gets or sets the character cell height, in pixels, of each cell in the grid.
|
byte |
getCharacterCellWidth()
Gets or sets the character cell width, in pixels, of each cell in the grid.
|
byte[] |
getPlainTextData()
Gets or sets the plain text data.
|
byte |
getTextBackgroundColorIndex()
Gets or sets the index of the color in the global color palette used to draw the text background.
|
byte |
getTextForegroundColorIndex()
Gets or sets the index of the color in the global color palette used to draw the text foreground.
|
int |
getTextGridHeight()
Gets or sets the text grid height in pixels
|
int |
getTextGridLeftPosition()
Gets or sets the text grid left position.
|
int |
getTextGridTopPosition()
Gets or sets the text grid top position.
|
int |
getTextGridWidth()
Gets or sets the text grid with in pixels
|
void |
setCharacterCellHeight(byte value)
Gets or sets the character cell height, in pixels, of each cell in the grid.
|
void |
setCharacterCellWidth(byte value)
Gets or sets the character cell width, in pixels, of each cell in the grid.
|
void |
setPlainTextData(byte[] value)
Gets or sets the plain text data.
|
void |
setTextBackgroundColorIndex(byte value)
Gets or sets the index of the color in the global color palette used to draw the text background.
|
void |
setTextForegroundColorIndex(byte value)
Gets or sets the index of the color in the global color palette used to draw the text foreground.
|
void |
setTextGridHeight(int value)
Gets or sets the text grid height in pixels
|
void |
setTextGridLeftPosition(int value)
Gets or sets the text grid left position.
|
void |
setTextGridTopPosition(int value)
Gets or sets the text grid top position.
|
void |
setTextGridWidth(int value)
Gets or sets the text grid with in pixels
|
isChanged, save, setChanged
public static final byte EXTENSION_LABEL
The plain text extension label.
public static final byte SUB_BLOCK_SIZE
The size of the sub block.
public static final byte BLOCK_SIZE
The overall block size.
public GifPlainTextRenderingBlock()
Initializes a new instance of the GifPlainTextRenderingBlock
class.
public GifPlainTextRenderingBlock(int textGridLeftPosition, int textGridTopPosition, int textGridWidth, int textGridHeight, byte characterCellWidth, byte characterCellHeight, byte textForegroundColorIndex, byte textBackgroundColorIndex, byte[] data)
Initializes a new instance of the GifPlainTextRenderingBlock
class.
textGridLeftPosition
- The text grid left position.textGridTopPosition
- The text grid top position.textGridWidth
- The text grid width.textGridHeight
- The text grid height.characterCellWidth
- The character cell width.characterCellHeight
- The character cell height.textForegroundColorIndex
- The foreground color index.textBackgroundColorIndex
- The background color index.data
- The plain text data.public byte getTextForegroundColorIndex()
Gets or sets the index of the color in the global color palette used to draw the text foreground.
Value: The foreground color index.public void setTextForegroundColorIndex(byte value)
Gets or sets the index of the color in the global color palette used to draw the text foreground.
Value: The foreground color index.public byte getTextBackgroundColorIndex()
Gets or sets the index of the color in the global color palette used to draw the text background.
Value: The background color index.public void setTextBackgroundColorIndex(byte value)
Gets or sets the index of the color in the global color palette used to draw the text background.
Value: The background color index.public byte getCharacterCellWidth()
Gets or sets the character cell width, in pixels, of each cell in the grid.
Value: The character cell width.public void setCharacterCellWidth(byte value)
Gets or sets the character cell width, in pixels, of each cell in the grid.
Value: The character cell width.public byte getCharacterCellHeight()
Gets or sets the character cell height, in pixels, of each cell in the grid.
Value: The character cell height.public void setCharacterCellHeight(byte value)
Gets or sets the character cell height, in pixels, of each cell in the grid.
Value: The character cell height.public int getTextGridLeftPosition()
Gets or sets the text grid left position.
Value: The text grid left position.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.
public void setTextGridLeftPosition(int value)
Gets or sets the text grid left position.
Value: The text grid left position.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.
public int getTextGridTopPosition()
Gets or sets the text grid top position.
Value: The text grid top position.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.
public void setTextGridTopPosition(int value)
Gets or sets the text grid top position.
Value: The text grid top position.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.
public int getTextGridWidth()
Gets or sets the text grid with in pixels
Value: The text grid width in pixels.public void setTextGridWidth(int value)
Gets or sets the text grid with in pixels
Value: The text grid width in pixels.public int getTextGridHeight()
Gets or sets the text grid height in pixels
Value: The text grid height in pixels.public void setTextGridHeight(int value)
Gets or sets the text grid height in pixels
Value: The text grid height in pixels.public byte[] getPlainTextData()
Gets or sets the plain text data.
Value: The plain text data.public void setPlainTextData(byte[] value)
Gets or sets the plain text data.
Value: The plain text data.