20.05.2008, 13:19
Hi,
i'm posting some info on IMF format. I tried doing the raw reading of the IMF format.
This is sample from TOW.
Sample data for wintermap_09_a\minimap.tga
------------------------------------------------------
Data index| Size | Data | Meaning
------------------------------------------------------
1 |0x8 | 494D 461A 3130 0000 |signature (0000 can be also 0001, i think this mean's more bytes per pixel, 4bytes if 0001 and 3bytes if 0000)
2 |0x2 | 0002 |width (512)
3 |0x2 | 0002 |height (512)
--------- 12 bytes (header)---------------------------
4 |0x200 | X | count 512 X (count of height)
5 |0xc0000 | Y | 786432 bytes of data (count of RGB 262144 (24bits color))
---------- all = 786956-------------------------------
The raw data can be seen in irfanview in raw format viewing just put the 32bit format and set offset to raw data as header count (12) + height (x) and you will see how the real data is coded in data (image is sampled in multiple parts).
br.
Dr.Jones
i'm posting some info on IMF format. I tried doing the raw reading of the IMF format.
This is sample from TOW.
Sample data for wintermap_09_a\minimap.tga
------------------------------------------------------
Data index| Size | Data | Meaning
------------------------------------------------------
1 |0x8 | 494D 461A 3130 0000 |signature (0000 can be also 0001, i think this mean's more bytes per pixel, 4bytes if 0001 and 3bytes if 0000)
2 |0x2 | 0002 |width (512)
3 |0x2 | 0002 |height (512)
--------- 12 bytes (header)---------------------------
4 |0x200 | X | count 512 X (count of height)
5 |0xc0000 | Y | 786432 bytes of data (count of RGB 262144 (24bits color))
---------- all = 786956-------------------------------
The raw data can be seen in irfanview in raw format viewing just put the 32bit format and set offset to raw data as header count (12) + height (x) and you will see how the real data is coded in data (image is sampled in multiple parts).
br.
Dr.Jones