摘要
为解决当前位图文件(BMP文件)解码器存在的支持种类较单一的问题,探讨了BMP格式的多样性,有针对性地提出了一些解码思路。通过分析Windows GDI(GDI+)函数对BMP文件支持程度以及不同版本的Windows操作系统下用Windows自带程序对不同格式BMP的解码效果,说明了目前Windows API函数在BMP解码上的格式支持局限性。设计并用C++实现了BMP解码程序,对其解码支持格式与解码速度进行了验证,该解码程序支持BMP类型较全、速度较快,为BMP的解码器的设计提供了有益参考。
To solve the problem of relatively less kind of bitmap (BMP) supporting in current BMP decoding soft'ware, variety of BMP files and some decoding way are introduced. Through analysis of support level of Windows GDI (or GDI+) functions and some Windows-offer BMP decoding programs in different Windows editions, some localizations of the way by using Windows API to decode BMP are made out. A BMP decoding program is given using standard C++ and the type and speed of it is analyzed. The program has a good ability of supporting more BMP file types and comparatively fast speed, which provides a good reference for the design of common BMP decoders.
出处
《计算机工程与设计》
CSCD
北大核心
2006年第7期1180-1182,共3页
Computer Engineering and Design