1、 i 放大镜的设计与实现 摘 要 本方案描述了由 C+开发的放大镜软件的设计与实现,介绍了软件研究的技术要 求,并对开发该软件的目的、开发环境与平台、设计理念与软件功能进行了描述。 该方案设计具体详细的阐述了方案的可行性、课题选择的意义、方案的设计方式、 实现逻辑、软件运作流程、界面的设计、程序的设计等。其中,界面设计包括被放大镜 的窗口设计以及被放大区域的计算方式, 程序设计包括总体流程设计、 放大镜窗体设计、 消息循环设计、以及窗口美化设计。此外还对代码的实现进行了介绍,主要包括放大窗 口设计模块、图像采集模块设计、消息循环模块以及放大窗口美化模块。 最后对放大镜软件进行了功能测试,并对测
2、试结果进行总结。读者通过阅读本文, 将对该软件有一个系统的了解。 关键词关键词 程序设计;放大镜;C+ ;API ii Design and implementation of a magnifying glass Abstract This scenario describes the design and implementation of C + software development magnifying glass, introduces the technical requirements for software research and development purpose
3、 of the software development environment and platform design and software features are described. The program specifically designed in detail the feasibility of the program ,meaning the subject choice, the way the program design, implementation logic, software, operational processes, interface desig
4、n ,program design .Among them, the interface design, including calculation is a magnifying glass window design and the area is enlarged, the overall program design, including process design, magnifying glass form design, the message loop design, landscaping and window design. In addition,the realiza
5、tion of the code were introduced, including the zoom window design module, image acquisition module design,module and zoom windows message loop beautification module. Finally magnifier software for functional testing, and test results are summarized. By reading this article the reader will understan
6、d the software has a system. Keywords programming;magnifying; C + +; API 目 录 摘 要 i Abstract.ii 1 绪论 . 1 1.1 课题选择的目的和意义 1 1.2 国内外研究现状及发展趋势 1 1.3 研究范围 2 1.4 技术要求 3 2 软件描述 . 4 2.1 任务概述 4 2.1.1 系统目标 . 4 2.1.2 系统的开发环境 . 4 2.1.3 开发思想与原理 . 4 2.2 功能描述 5 2.2.1 软件设计 . 5 2.2.2 模块功能划分 . 5 2.3 性能 5 3 方案设计 . 6 3.1 具体方案设计 6 3.1.1 模块划分. 6 3.1.2 各个模块的功能说明. 6 3.2 方案论证分析 7 3.2.1 方案的技术可行性 . 7 3.2.2 方案的经济可行性 . 8 3.2.3 方案的优点 . 9 3.3 程序设计 9 3.3.1 总体流程 . 9 4 代码实现 . 10 4.1 主程序入口 10 4.2 放大窗口模块 12 4.3 图像采集模块 13 4.4 消息