基于GDI的基本位图绘制软件设计实现论文.docx毕业设计(论文) 设计论文题目: 基于GDI的基本位图 绘制软件的设计与实现 学生姓名: 学生学号: 专业班级: 学院名称: 指导老师: 学院院长: 年 5月25日 基于GDI的基本位图绘制软件的设计与实现 摘要 随着计算机硬件功能的不断提高、系统软件的不断完善,计算机图形学已广泛应 用于各个相关领域,并发挥愈来愈大的作用。其中,利用计算机对数字化图像进行编 辑处理的方法,也使电脑美术逐渐发展成为一种新兴的艺术形式。 在计算机中,图画有两种类型,即矢量图和位图。位图较矢量图更适合于表现那 些色彩丰富、有明暗变化和大量细节的图片,因此在数码拍照、彩色印刷等方面有着 广泛的应用。 目前,有多种在计算机上实现位图绘制的底层方法,最常用的有利用OpenGL, 或利用 Windows 提供的 GDI (Graphics Devices Interface,图形设备接口)。 本文对Windows GDL位图等内容作了一定的学****和研究,并在GDI的基础上实 现了一个小型的位图绘制软件,其功能类似与Windows操作系统附件中的绘图工具, 能绘制直线、曲线、圆等多种图形,具有橡皮擦,可设置绘图样式,可选择复制图形 对象,最后输出成位图文件。 本文简述了软件实现所需的技术基础,包括Windows GDI绘图原理,位图的基本 原理等,并着重阐述了该绘图软件的用户界面、每种图形绘制设计原则、思路以及在 程序中的实现方法。 关键词:GDL绘图软件,位图 A graphics software of drawing bitmap based on Windows GDI Abstract As the function of computer hardware and system software continues to improve, computer graphics has been widely used in various related fields, and played a greater and greater role. By using computers to edit or process a digital image, the computer art has become a new art form. In computer, pictures can be stored in two forms: vector based image and bit mapped image. The bit mapped image can show more colors and details, so, the type of bit mapped image is widely used in digital photo and colored print. Now, there are many methods can draw bit mapped images on computer, such as OpenGL and Windows GDI (Graphics Devices Interface). This paper has studied the Windows GDI and researched on the basic tenets of Bitmaps. It also implemented a small drawing software based on GDI, which had the similar functions with the Drawing Tools of the annex in Windows Operation System. Using the drawing software, you can draw lines, curves, circles, etc. And you can use the rubber tool to erase the wrongs. You can set the styles of drawing and can select/copy the figure objects. At last, you can export a BMP file. This thesis described the technical foundations required by the software, including drawing principle of GDI and the basic tenets of Bitmaps. It also des