Garmin H GPS Receiver User Manual


 
cGPSmapper Manual Creating custom type file
http://cgpsmapper.com/ 54 of 100
Line declaration method 2: Describe a bitmap using XPM.
[_line]
Type=0x0a
Xpm="32 5 4 1"
"= c #b0b0b0"
" c none"
"3 c #585858"
"4 c none"
"================================"
" ======= ======= "
" ======= ======= "
" ======= ======= "
"================================"
;12345678901234567890123456789012
string1=0x04,Unpaved
string2=0x08,Camino revistida
[end]
The first line of the xpm declaration indicates a definition 32 pixels wide, 5 pixels tall, with
4 colors, using 1 character for the pixel representations in the bitmap. This declaration
uses a transparent background, represented by the space character in the ASCII bitmap. In
the image above, notice that the transparency reveals whatever texture is underneath the
line.
[_polygon] Definitions
Polygon definitions are limited to 32x32 xpm bitmaps using using 2 colors each for the
daytime and nighttime definitions. They are tiled when rendered.