Previous Up Next

_DRAWtext8
Draw a text inside a 8-bits bitmap.

ObjBitmap8 _DRAWtext8 (
ObjBitmap8 _bitmap_
ObjFont _font_
I _x_
I _y_
I _color_
I _flag_
S _text_
)
Parameters

_bitmap_
any 8-bits bitmap
_font_
any font
_x_
x coordinate
_y_
y coordinate
_color_
color (24 bits)
_flag_
position flag :
TD_BASELINE _y_ is the baseline coordinate
TD_BOTTOM _y_ is the bottom coordinate
TD_TOP _y_ is the top coordinate
TD_CENTER _x_ is the center coordinate
TD_LEFT _x_ is the left coordinate
TD_RIGHT _x_ is the right coordinate
_text_
text to draw
Return value

same bitmap