BitmapDrawer

Draws into a 8bit bitmap.

Constructors

this
this(int x, int y)

Creates the object alongside its output.

Members

Functions

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

Draws colored text from monocromatic font.

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

Draws a filled rectangle.

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

Draws a single line.

drawLine
void drawLine(int xa, int xb, int ya, int yb, Bitmap8Bit brush)

Draws a line using a brush.

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

Draws a rectangle.

drawRectangle
void drawRectangle(int xa, int xb, int ya, int yb, Bitmap8Bit brush)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
deprecated void drawText(int x, int y, wstring text, Bitmap8Bit[wchar] fontSet, int style)

Draws texts. (deprecated, will be removed after Version 1.0.0)

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

Draws text to the given point.

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

Inserts a bitmap using blitter.

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

patternFill
void patternFill(int xa, int ya, int xb, int yb, Bitmap8Bit pattern)

Fills the area with a pattern.

Variables

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

Meta