摘要
探讨了在VC++环境下,运用改进LZW算法对BMP图像进行无损压缩转换成GIF格式的图像。首先分析了BMP与GIF两种图像的具体格式,然后在VC++环境下建立自己的函数库文件。在理解LZW编码算法原理的基础上,提出一种改进型的LZW算法并在VC++下实现该算法。通过前面建立的BMP图像函数库,调用相关函数,就可以找到相应的具体的图像数据,进而通过改进型LZW编码将BMP图像数据转换成GIF图像数据,实现图像格式的无损压缩转换。
The conversion from the BMP file into the GIF file in VC++ environment is discussed. These two kinds of image file format are analyzed first. Then, in the VC++ environment, its own function lib files are set up. On the basis of understanding the principle of the LZW coding, the improved algorithm in VC ++ environment is realized. By applying the function lib file established above, the corresponding specific image data will be found. In this way, the BMP data can be inverted into GIF format through the improved LZW coding algorithm, which realizes the conversion of the image format.
出处
《机械管理开发》
2010年第3期178-179,共2页
Mechanical Management and Development