Tscope5
Main Page
Related Pages
Files
Examples
display3.c
use a memory bitmap as the drawing target
#include <tscope5.h>
int
main()
{
ts5_install_display
();
TS5_BITMAP *map =
ts5_alloc_bitmap
(100.0,100.0);
int
i;
for
(i=9; i>=1; i--) {
ts5_set_drawing_target
(map);
ts5_clear_display
();
ts5_printf
(0.0, 0.0,
"%d"
, i);
ts5_set_active_display
(1);
ts5_draw_bitmap
(map, 0.0, 0.0);
ts5_flip_display
();
ts5_wait
(1.0);
ts5_clear_display
();
}
ts5_free_bitmap
(map);
return
0;
}