Canvas

IMPORTANT: This will replace the current drawing methods by version 1.0.0 The older method of using multiple BitmapDrawer class will be removed by that point. </br> Implements the frontend of a drawable canvas, primarily for GUI elements. Mostly limited to 256 colors, certain methods (eg. blitting) might enable more.

Members

Functions

bitBLiT
void bitBLiT(int x0, int y0, ABitmap source)
Undocumented in source.
bitBLiT
void bitBLiT(int x0, int y0, int x1, int y1, ABitmap source)
Undocumented in source.
bitBLiT
void bitBLiT(int x0, int y0, Coordinate slice, ABitmap source)
Undocumented in source.
drawFilledRectange
void drawFilledRectange(int x0, int y0, int x1, int y1, ubyte color, int lineWidth)

Draws a filled rectangle

drawLine
void drawLine(int x0, int y0, int x1, int y1, ubyte color, int lineWidth)

Draws a line.

drawRectangle
void drawRectangle(int x0, int y0, int x1, int y1, ubyte color, int lineWidth)

Draws an empty rectangle

drawText
void drawText(int x0, int y0, Fontset!Bitmap8Bit font, dstring text, ubyte color)

Draws a text with the specified data. Can be multiline.

drawText
void drawText(int x0, int y0, Text!Bitmap8Bit text)

Draws a fully formatted text. Can be multiline.

drawText
void drawText(Coordinate c, Fontset!Bitmap8Bit font, dstring text, ubyte color)

Draws a text within the given area with the specified data. Can be multiline.

drawText
void drawText(Coordinate c, Text!Bitmap8Bit text)

Draws a fully formatted text within the specified area. Can be multiline.

drawText
void drawText(int x0, int y0, int sliceX, int sliceY, Fontset!Bitmap8Bit font, dstring text, ubyte color)

Draws a text with the specified data and offset from the upper-left corner. Can be multiline.

drawText
void drawText(int x0, int y0, int sliceX, int sliceY, Text!Bitmap8Bit text)

Draws a fully formatted text with offset from the upper-left corner. Can be multiline.

drawText
void drawText(Coordinate c, int sliceX, int sliceY, Fontset!Bitmap8Bit font, dstring text, ubyte color)
Undocumented in source.
drawText
void drawText(Coordinate c, int sliceX, int sliceY, Text!Bitmap8Bit text)
Undocumented in source.
fill
void fill(int x0, int y0, ubyte color, ubyte background)

Fills an area with the specified color

xorBLiT
void xorBLiT(int x0, int y0, int x1, int y1, ubyte color)
Undocumented in source.
xorBLiT
void xorBLiT(int x0, int y0, ABitmap source)
Undocumented in source.

Meta