[Example]
The following monochrome image data (19x8 dots) is drawn.
The leading 2-word data in the buffer are the height and the width
of the image pattern data.
+---- 19 dots -----+
│ │
fedcba9876543210 765
0 ................ ... -+
1 .####..####..#.. .#. │
2 .#...#.#...#.##. ##. │
3 .#...#.#...#.#.# .#. │ 8 dots
4 .####..####..#.. .#. │
5 .#..#..#.....#.. .#. │
6 .#...#.#.....#.. .#. │
7 ................ ... -+
The following program draws the above monochrome image data.
#include <graph.h>
#define Blue 1
#define White 7
unsigned short image_rpm[18] = {
0x0013,0x0008 /* 19 x 8 Dot */
,0x0000,0x0000
,0x79e4,0x4000
,0x4516,0xc000
,0x4515,0x4000
,0x79e4,0x4000
,0x4904,0x4000
,0x4504,0x4000
,0x0000,0x0000
} ;
void example( short x, short y )
{
char *image ;
image = (char *)&image_rpm[0] ;
_putpattern( x, y, image, _GPSET, Blue, White ) ;
return ;
}