BitmapDrawer

Draws into a 8bit bitmap.

Constructors

this
this(int x, int y)

Creates the object alongside its output.

Members

Functions

bitBLT
void bitBLT(Point target, Bitmap8Bit source)

Copies a bitmap to the canvas using 0th index transparency.

bitBLT
void bitBLT(Point target, Bitmap8Bit source, Coordinate slice)

Copies a bitmap slice to the canvas using 0th index transparency.

bitBLTPattern
void bitBLTPattern(Box pos, Bitmap8Bit pattern)

Fills the specified area with a pattern.

drawBox
void drawBox(Box target, ubyte color)

Draws a box.

drawBox
void drawBox(Coordinate target, ubyte[] pattern)

Draws a box with the supplied pattern as the

drawFilledBox
void drawFilledBox(Coordinate target, ubyte color)

Draws a filled box.

drawLine
void drawLine(Point from, Point to, ubyte color)

Draws a single line.

drawLinePattern
void drawLinePattern(Point from, Point to, ubyte[] pattern)

Draws a line with a pattern.

drawMultiLineText
uint drawMultiLineText(Box pos, Text text, int offset, int lineOffset)

Draws fully formatted text within a given prelimiter specified by pos. Offset specifies how much of the text is being obscured from the left hand side. lineOffset specifies how much lines in pixels are skipped on the top. Return value contains state flags on wheter certain portions of the text were out of bound.

drawMultiLineText
uint drawMultiLineText(Box pos, Text[] lineChunks, int offset, int lineOffset)

Draws fully formatted text within a given prelimiter specified by pos. Offset specifies how much of the text is being obscured from the left hand side. lineOffset specifies how much lines in pixels are skipped on the top. Return value contains state flags on wheter certain portions of the text were out of bound.

drawSingleLineText
uint drawSingleLineText(Box pos, Text text, int offset, int lineOffset)

Draws a single line fully formatted text within a given prelimiter specified by pos. Offset specifies how much of the text is being obscured from the left hand side. lineOffset specifies how much lines in pixels are skipped on the top. Return value contains state flags on wheter certain portions of the text were out of bound.

floodFill
void floodFill(Point target, ubyte color, ubyte transparency)
Undocumented in source. Be warned that the author may not have intended to support it.
insertColorLetter
void insertColorLetter(int x, int y, Bitmap8Bit bitmap, ubyte color)

Inserts a color letter.

xorBitBLT
void xorBitBLT(Box target, Bitmap8Bit pattern)

XOR blits a repeated bitmap pattern over the specified area.

xorBitBLT
void xorBitBLT(Coordinate target, ubyte color)

XOR blits a color index over a specified area.

Variables

dottedLine
ubyte[2] dottedLine;
Undocumented in source.
output
Bitmap8Bit output;
Undocumented in source.
stripesLine
ubyte[8] stripesLine;
Undocumented in source.

Meta