TGA 图像规范包含以下两个字段:
Field 5.1 (2 bytes) - X-origin of Image:
These bytes specify the absolute horizontal coordinate for the lower
left corner of the image as it is positioned on a display device having
an origin at the lower left of the screen (e.g., the TARGA series).
Field 5.2 (2 bytes) - Y-origin of Image:
These bytes specify the absolute vertical coordinate for the lower
left corner of the image as it is positioned on a display device having
an origin at the lower left of the screen (e.g., the TARGA series).
这对我来说似乎很奇怪。为什么图像在屏幕上的位置包含在图像本身的数据中?我希望图像不关心它们的位置,因为这是渲染引擎的责任。是否与 TGA 图像是为特殊视频卡设计的事实有关?
这是 TGA 规范的链接以供参考:http ://www.dca.fee.unicamp.br/~martino/disciplinas/ea978/tgaffs.pdf