论文主要由三部分组成:第一部分描述了项目研究背景,回顾了相关研究状况,介绍图像基础知识,并确认了项目所要达到的目标;第二部分详细介绍了图像编程的方法和步骤,为系统整体框架准备了具体的模块,是论文的重点章节,建立面向对象位图类库,详细分析了技术难点,位图编程结合 GDIPlus SDK 图像编程成功解决了图像格式的转换;第三部分以具体模块为基础,论述了系统概要设计、详细设计和编写了软件测试报告,文章最后对论文做出了总结和展望。软件成功解决了传真文件的图形化编辑,采用了独特的解决方案,思路清晰,操作方便快捷,值得借鉴。 关键词 : 图像签名;图像合成;TIF/TIFF 图像格式。 Abstract Using Visual C + + 6.0 implements TIF / TIFF image synthesis, mainly used in office automation for the fax file graphical edited, endorsed, signed ,sealed and so on. The thesis is mainly composed of three parts. The first part describes the research background of the project, review the status of related research, introduce basic knowledge of image and confirm the goals of the project. The second part of a detailed introduction of the image programming method and steps prepare an overall framework for system specific modules, are the focus of thesis chapters, set up a bitmap object-oriented class library, a detailed analysis of technical problems, combined with bitmap GDIPlus SDK graphics programming successfully resolved image format conversion. The third parts to a specific module for the foundation, discusses the summary of design , detailed design and the preparation of a software test reports, the end of the paper made a summary and outlook. The software successfully resolved fax graphical editing, the use of a unique solution, clearly, easily to operate faster, is worth learning from. Key Word s: : Image Signature;Image Synthesis;TIF/TIFF Image Format. 目 目 录 第 第 1 章 章 引言...........................................................................................1 1.1. 研究背景 ........................................................................................................ 1 1.2. 研究目标 ........................................................................................................ 1 1.3. 研究现状 ........................................................................................................ 2 1.3.1. EastFax 智能传真软件 ...................................................................... 2 1.3.2. CxImage 类库 .................................................................................... 2 1.4. 相关知识介绍 ................................................................................................ 3 1.4.1. TIF/TIFF 格式图像文件介绍 ........................................................... 3 1.4.2. BMP/DIB/DDB 位图的介绍 ............................................................. 5 1.5. 本文的主要研究工作 .................................................................................... 5 1.6. 本文结构 ........................................................................................................ 5 第 第 2 章 章 位图编程 ..................................................................................7 2.1. 面向对象的位图编程 .................................................................................... 7 2.1.1. 定义 DIB 处理函数集 ....................................................................... 7 2.1.2. 定义 CDIB 类 .................................................................................... 9 2.1.3. 图像缩放功能 .................................................................................. 10 2.1.4. 图像旋转功能 .................................................................................. 11 2.1.5. 图像合成功能 .................................................................................. 12 2.1.6. 图像签名功能 .................................................................................. 16 2.2. GDIPlus SDK 图像编程 ............................................................................. 18 2.2.1. GDIPlus SDK 介绍 .......................................................................... 18 2.2.2. TIFF 格式图像转换为 BMP 位图 .................................................. 19 2.2.3. BMP 位图转换为 TIFF 格式图像 .................................................. 19 第 第 3 章 章 传真编辑系统的概要设计与详细设计 ................................20 3.1. 概要设计 ...................................................................................................... 20 3.1.1. 系统说明 .......................................................................................... 20 3.1.2. 模块说明 .......................................................................................... 21 3.1.3. 界面约定 .......................................................................................... 22 3.2. 详细设计 ...................................................................................................... 23 3.2.1. 类 TIFFToBMP 模块 ....................................................................... 23 3.2.2. 类 BMPToTIFF 模块 ....................................................................... 23 3.2.3. 类 CDIB 模块 .................................................................................. 24 3.2.4. BMP 图像变换模块与 BMP 图像签名、图像合成模块 .............. 24 3.2.5. ViewDIB 模块 ................................................................................. 24 3.2.6. 图像界面模块 .................................................................................. 25 第 第 4 章 章 传真编辑系统的测试 ............................................................26 4.1. 单元测试 ...................................................................................................... 26 4.2. 集成测试 ...................................................................................................... 26 4.3. 系统测试 ...................................................................................................... 27 第 第 5 章 章 总结与展望 ............................................................................28 5.1. 总结 .............................................................................................................. 28 5.2. 展望 .............................................................................................................. 28 致谢 参考文献 致谢 参考文献 Contents Chapter 1 Introduction .............................................................................1 1.1. Research Background .................................................................................. 1 1.2. Research Objecive ........................................................................................ 1 1.3. The Related Items ......................................................................................... 2 1.3.1. EastFax Intelligent Fax Software ....................................................... 2 1.3.2. CxImage Class Library ...................................................................... 2 1.4. The Related Knowledge Introduction ........................................................ 3 1.4.1. TIF/TIFF Image File Introduction ..................................................... 3 1.4.2. BMP/DIB/DDB Bitmap Introduction ................................................ 5 1.5. Primary Coverage ........................................................................................ 5 1.6. Structure ........................................................................................................ 5 Chapter 2 DIB Programming ..................................................................7 2.1. Bitmap Object-Oriented Programming ..................................................... 7 2.1.1. The Definition Of DIB API ................................................................ 7 2.1.2. The Definition Of CDIB Class .......................................................... 9 2.1.3. Image Zooming ................................................................................ 10 2.1.4. Image Rotating ................................................................................. 11 2.1.5. Image Synthesis Process .................................................................. 12 2.1.6. Image Signture Process .................................................................... 16 2.2. GDIPlus SDK Graphics Programming .................................................... 18 2.2.1. GDIPlus SDK Introduction .............................................................. 18 2.2.2. TIFF Image File Converted To BMP Image File ............................. 19 2.2.3. BMP Image File Converted To TIFF Image File ............................. 19 Chapter 3 FaxEditor System Preliminary And Detailed Design ........20 3.1. Preliminary Design ..................................................................................... 20 3.1.1. System Introduction ......................................................................... 20 3.1.2. Module Introduction ........................................................................ 21 3.1.3. Interface Agreement ......................................................................... 22 3.2. Detailed Design ........................................................................................... 23 3.2.1. TIFFToBMP Module ....................................................................... 23 3.2.2. BMPToTIFF Module ....................................................................... 23 3.2.3. CDIB Module ................................................................................... 24 3.2.4. BMP Changing 、BMP Signture And Synthesis ............................ 24 3.2.5. ViewDIB Module ............................................