摘 要
本软件主要应用MFC(VC++)实现BMP格式图片的打开,保存和格式转换,然后将BMP格式的文件转换为LB格式的文件,并保存,最后打开LB格式的文件。同时在状态栏上显示图片的信息(分辨率、象素深度,图形大小等)。
本软件采用Microsoft Visual C++ 6.0开发,使用当前优秀的开发工具VC++(MFC)制作,并运用C++语言编码。
本软件的关键在MFC(VC++)环境下实现BMP文件格式的编码与解码和LB文件格式文件的编码与解码,图片的显示、打开和保存的响应程序,以及状态栏的设置和状态栏的信息提取。
论文主要介绍了本课题内容的相关知识及开发环境,所要完成的功能和开发的过程。重点的说明了软件设计的重点、设计思想、难点技术和解决方案。详细描述了实现功能的代码编辑。
关键词:BMP格式;LB格式;状态栏;编码。
Abstract
The main applied MFC( VC++) of this software carries out the BMP format picture to open, keep and the format conversion, then keep the document conversion of the format of BMP is the document of the format of LB, and, open the document of the format of LB finally.At the same time on the appearance column the information of the manifestation picture( resolution, the pixel depth, the sketch size /etc.)
This software adoption Microsoft Visual C++6.0 developments, the usage current excellent development tool VC++( MFC) creation, and make use of the C++ the language /code.
The key of this software carries out the coding of the BMP document format and the coding and decoding of the decoding and the LB document format documents under the MFC( VC++) environment, the manifestation of the picture, open and keep of respond to the procedure, and the constitution of the appearance column and the information of the appearance columns /withdraw.
The thesis mainly introduced the related knowledge and the development environments of this topic contents, finished function and the process of the developments want.The point explained the point, the design thought, a little bit difficult technique and solution of the software design.Detailed described to carry out the code editor of the /function.
Keywords:Format of BMP,Format of LB,Appearance column;Code.
目 录
第一章 概述??????????????????????????????????????????????????????????1
1.1 VC++与C++的介绍??????????????????????????????????????????????2
1.2 BMP的介绍???????????????????????????????????????????????????7
1.3 位图的结构????????????????????????????????????????????????????9
第二章 系统分析??????????????????????????????????????????????????????14
2.1 需求分析??????????????????????????????????????????????????????14
2.2 方案设计??????????????????????????????????????????????????????15
第三章 系统代码??????????????????????????????????????????????????????17
3.1 创建Windows应用程序框架????????????????????????????????????17
3.2 打开彩色位图?????????????????????????????????????????????????18
3.3 状态栏的制作?????????????????????????????????????????????????21
3.4 自定格式??????????????????????????????????????????????????????29
总结????????????????????????????????????????????????????????????????????29
致谢????????????????????????????????????????????????????????????????????30
参考文献???????????????????????????????????????????????????????????????33