我已阅读 Wiki http://en.wikipedia.org/wiki/Truevision_TGA而我知道tga文件第18字节的5-4位代表tga文件的方向。
那么,有4个排列(00,01,10,11)来告诉我们方向,每个排列代表哪个方向?
最佳答案
来自 PDF Truevision TGAª — FILE FORMAT SPECIFICATION — Version 2.0链接在维基百科页面上。
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.
关于java - 如何在java中获取tga文件的方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29845136/