432
|
1 |
#summary Short description of the file format of hand-drawn maps
|
|
2 |
|
226
|
3 |
Drawn map is described by a list of points, which define polylines to draw and format of each polyline.
|
|
4 |
|
|
5 |
Point is defined as
|
|
6 |
|| Big-endian int16 || Big-endian int16 || Byte ||
|
|
7 |
|| *X* coordinate || *Y* coordinate || *flags* ||
|
|
8 |
|
|
9 |
where *flags* are:
|
|
10 |
|| 8th bit || 7th bit || 6th-1st bits ||
|
|
11 |
|| if set, this is a first point of polyline || if set, polyline is erasing || *width*(thickness) of line ||
|
|
12 |
|
|
13 |
where *width* defines `(width * 10) + 6` pixels width line to draw
|
|
14 |
|
|
15 |
Second and further points of polyline have 8th bit of *flags* unset, the content of others doesn't matter.
|
|
16 |
|
|
17 |
Single-point polyline defines a circle (well, that's kinda obvious). |