how to get the direction of tga file in java

≡放荡痞女 提交于 2019-12-10 15:23:15

问题


I have read Wiki http://en.wikipedia.org/wiki/Truevision_TGA and I know that the 5-4 bits of the Eighteenth byte of tga file represent the direction of tga file.

So, there is 4 permutations(00,01,10,11) to show us the direction, which direction does each permutation stand for?


回答1:


From the PDF Truevision TGAª — FILE FORMAT SPECIFICATION — Version 2.0 linked on the Wikipedia page.

Bits 5 & 4: These bits are used to indicate the order in which pixel data is transferred from the file to the screen. Bit 4 is for left-to-right ordering and bit 5 is for top-to-bottom ordering as shown below.



来源:https://stackoverflow.com/questions/29845136/how-to-get-the-direction-of-tga-file-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!