如何获取 tiff 图像的文件头大小?
我需要这个值来进行数据处理。
答案1
头部有8个字节:
+------------------------------------------------------------------------+
| TIFF Header |
+--------+-------+----------+--------------------------------------------+
| Offset | Type | Default | Description |
+--------+-------+----------+--------------------------------------------+
| 0-1 | WORD | II or MM | Endian: Intel (little) / Motorola (big) |
| 2-3 | WORD | 0x2A | Version (usually 42) |
| 4-7 | ULONG | | Offset to first IFD (image file directory) |
+--------+-------+----------+--------------------------------------------+
以下是几条参考: