且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在.bmp图像文件中读取深度值时出现问题。

更新时间:2023-11-09 13:35:40

标准位图有7个不同版本(几乎适用于所有OS / 2和Windows版本),因此DIB部分可以不同,具体取决于用于创建它的应用程序。

这意味着并非所有格式的深度信息都准确地位于第2​​8位......

http://en.wikipedia.org/wiki/BMP_file_format [ ^ ]

了解更多信息: http://www.fileformat.info/format/bmp/egff.htm#MICBMP-DMYID.3 [ ^ ]
The 'standard' bitmap have 7 different versions (for almost every OS/2 and Windows version), so the DIB section can be different, depending on the application used to create it.
That means that not in all format depth info will be exactly at position 28...
http://en.wikipedia.org/wiki/BMP_file_format[^]
Find you more: http://www.fileformat.info/format/bmp/egff.htm#MICBMP-DMYID.3[^]