BitmapDrawer

Draws into a 16bit bitmap. TODO: Make it usable on 8 and 32bit bitmaps too.

Constructors

this
this(int x, int y)

Creates the object alongside its output.

Members

Functions

drawColorText
void drawColorText(int x, int y, wstring text, Fontset!(Bitmap16Bit) fontset, ushort color, int style)

Draws colored text from monocromatic font.

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

Draws a filled rectangle.

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

Draws a single line.

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

Draws a line using a brush.

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

Draws a rectangle.

drawRectangle
void drawRectangle(int xa, int xb, int ya, int yb, Bitmap16Bit brush)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(int x, int y, wstring text, Fontset!(Bitmap16Bit) fontset, int style)

Draws text to the given point. Styles: 0 = centered, 1 = left, 2 = right

drawText
deprecated void drawText(int x, int y, wstring text, Bitmap16Bit[wchar] fontSet, int style)

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

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

Inserts a bitmap using blitter.

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

Inserts a midsection of the bitmap defined by slice

insertColorLetter
void insertColorLetter(int x, int y, Bitmap16Bit bitmap, ushort[8] colorvect)
Undocumented in source. Be warned that the author may not have intended to support it.
patternFill
void patternFill(int xa, int ya, int xb, int yb, Bitmap16Bit pattern)

Fills the area with a pattern.

Static variables

transparencytester4
ushort[4] transparencytester4;
Undocumented in source.
transparencytester8
ushort[8] transparencytester8;
Undocumented in source.

Variables

brushTransparency
ushort brushTransparency;
Undocumented in source.
output
Bitmap16Bit output;
Undocumented in source.

Meta