如何在 java 中获取 tga 文件的方向
how to get the direction of tga file in java
看过Wikihttp://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.
看过Wikihttp://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.