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(Coordinate pos, Bitmap8Bit pattern)

Fills the area with a pattern.

drawBox
void drawBox(Coordinate target, ubyte color)

Draws a box.

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

Draws a box with line pattern.

drawColorText
void drawColorText(int x, int y, dstring text, Fontset!(Bitmap8Bit) fontset, ubyte color, uint style)

Draws colored text from monocromatic font.

drawFilledBox
void drawFilledBox(Coordinate target, ubyte color)

Draws a filled box.

drawFilledRectangle
deprecated void drawFilledRectangle(int xa, int xb, int ya, int yb, ubyte color)

Draws a filled rectangle. DEPRECATED!

drawLine
deprecated void drawLine(int xa, int xb, int ya, int yb, ubyte color)

Draws a single line. DEPRECATED!

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(Coordinate 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.

drawRectangle
deprecated void drawRectangle(int xa, int xb, int ya, int yb, ubyte color)

Draws a rectangle. DEPRECATED!

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.

drawText
void drawText(int x, int y, dstring text, Fontset!(Bitmap8Bit) fontset, uint style)

Draws text to the given point. DEPRECATED!

insertBitmap
deprecated void insertBitmap(int x, int y, Bitmap8Bit bitmap)

Inserts a bitmap using blitter. DEPRECATED

insertBitmapSlice
void insertBitmapSlice(int x, int y, Bitmap8Bit bitmap, Coordinate slice)

Inserts a midsection of the bitmap defined by slice

insertColorLetter
void insertColorLetter(int x, int y, Bitmap8Bit bitmap, ubyte color)

Inserts a color letter.

insertColorLetter
void insertColorLetter(int x, int y, Bitmap8Bit bitmap, ubyte color, Coordinate slice)

Inserts a midsection of the bitmap defined by slice as a color letter

xorBitBLT
void xorBitBLT(Coordinate 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

brushTransparency
ubyte brushTransparency;
Undocumented in source.
output
Bitmap8Bit output;
Undocumented in source.

Meta