Format Of The .Tmt Files; External Poi Files - TomTom Navigator SDK Installation And Use Manual

Version 3.0 build 193
Table of Contents

Advertisement

AppPoiFile|Acme.poi|
AppIconFile|\TomTom\Acme.tmt|
AppMainTitle|Acme Guide|
COMMAND|GEO|FindNearby|\TomTom\AcmeCmd001.tmt|Dichtstbijzijnde plaatsen|¬
Find places nearby|Points d'intérêt voisins|¬
Punti di interesse nelle vicinanze|Nahe gelegene betriebe|¬
Puntos de interés cercanos|Find places nearby|
COMMAND|POI|Details|\TomTom\AcmeCmd002.tmt|Toon gedetailleerde info|¬
Show details|Détails|Dettagli|Details|Detalles|Show details|
Please note that each command has to be exactly one line of text, although here they have been
reproduced in several lines for readability.

4.2.2. Format of the .TMT files

To provide Navigator with bitmaps of different sizes for an icon, so that it can select the most
appropriate one depending upon the circumstances, .TMT files are used. A .TMT file is just a
concatenation of .BMP files with an index appended at the end. There are two bitmaps for each icon size, a
color bitmap for the image and a monochrome bitmap for the mask:
Bitmap for icon size 1
Mask for icon size 1
...
Bitmap for icon size N
Mask for icon size N
Index
It is recommended that the bitmaps are square, that is, that they have the same width and height. This
value in pixels, or the maximum of the width and the height, if the bitmaps are not square, is considered the
size of the bitmap.
The format of the index is the following:
4 bytes
File position of bitmap 1
4 bytes
File position of mask 1
4 bytes
Icon size 1
...
4 bytes
File position of bitmap N
4 bytes
File position of mask N
4 bytes
Icon size N
4 bytes
File position of the index
8 bytes
Unused
4 bytes
N = Number of icon sizes
Where file positions are byte offsets from the start of the file, and all quantities are stored as
little−endian integers.
It is recommended that you provide color images of 16 by 16 pixels and 32 by 32 pixels with their
corresponding monochrome masks.
You can use the utility ConcatBmpFiles.exe to assemble .TMT files from individual .BMP files:
concatbmpfiles «result».tmt «icon1».bmp «mask1».bmp ... ¬

4.3. External POI files

To extend the POI capabilities of Navigator, seven types of points of interest have been reserved, with
4. Extending the Location−sensitive Menu
«iconN».bmp «maskN».bmp
12

Advertisement

Table of Contents
loading

Table of Contents