I have the following problem: I am trying to read the header of a tga file and so I went on Wikipedia to get the structure of a tga file: There it says that the image width and height are stored as one word or 2 bytes of data in the header. But then I looked at the hex code of a tga file header (the first 18 bytes):
00 00 02 00 00 00 00 00 00 00 00 00 20 00 20 00 20 08
Here the 3rd and 2nd last words are the width and height. So according to this my tga file should be 8.192px wide and 8.192px high (0x2000) but in reality the image is only 32px wide and 32px high (0x20 - first byte).
Do you have an explanation for this?