gdi基本位圖繪制軟件的設計與實現(xiàn).rar
gdi基本位圖繪制軟件的設計與實現(xiàn),gdi基本位圖繪制軟件的設計與實現(xiàn)1.3萬字 34頁包括開題和任務書摘要隨著計算機硬件功能的不斷提高、系統(tǒng)軟件的不斷完善,計算機圖形學已廣泛應用于各個相關領域,并發(fā)揮愈來愈大的作用。其中,利用計算機對數(shù)字化圖像進行編輯處理的方法,也使電腦美術逐漸發(fā)展成為一種新興的藝術形式。在計算機中,圖畫有兩種類型,即矢量圖和位圖。位...
該文檔為壓縮文件,包含的文件列表如下:


內容介紹
原文檔由會員 usactu 發(fā)布
GDI基本位圖繪制軟件的設計與實現(xiàn)
1.3萬字 34頁
包括開題和任務書
摘 要
隨著計算機硬件功能的不斷提高、系統(tǒng)軟件的不斷完善,計算機圖形學已廣泛應用于各個相關領域,并發(fā)揮愈來愈大的作用。其中,利用計算機對數(shù)字化圖像進行編輯處理的方法,也使電腦美術逐漸發(fā)展成為一種新興的藝術形式。
在計算機中,圖畫有兩種類型,即矢量圖和位圖。位圖較矢量圖更適合于表現(xiàn)那些色彩豐富、有明暗變化和大量細節(jié)的圖片,因此在數(shù)碼拍照、彩色印刷等方面有著廣泛的應用。
目前,有多種在計算機上實現(xiàn)位圖繪制的底層方法,最常用的有利用OpenGL,或利用Windows提供的GDI(Graphics Devices Interface,圖形設備接口)。
本文對Windows GDI、位圖等內容作了一定的學習和研究,并在GDI的基礎上實現(xiàn)了一個小型的位圖繪制軟件,其功能類似與Windows操作系統(tǒng)附件中的繪圖工具,能繪制直線、曲線、圓等多種圖形,具有橡皮擦,可設置繪圖樣式,可選擇復制圖形對象,最后輸出成位圖文件。
本文簡述了軟件實現(xiàn)所需的技術基礎,包括Windows GDI繪圖原理,位圖的基本原理等,并著重闡述了該繪圖軟件的用戶界面、每種圖形繪制設計原則、思路以及在程序中的實現(xiàn)方法。
關鍵詞:GDI,繪圖軟件,位圖
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 described the details of user interface, the design principle, and the ideas of each graphic in the software realization process.
Key Words: GDI, Bitmap, Graphics Software
目 錄
1 緒論 1
1.1 課題的背景及目的 1
1.2 國內外研究狀況和相關領域中已有的成果 1
1.3 設計和研究方法 2
1.4 論文結構 2
2 . 基本理論知識及應用 4
2.1 繪圖系統(tǒng)說明 4
2.2 MFC編程 5
2.2.1 MFC簡介 5
2.2.2 Windows消息機制 5
2.3 圖像格式——BMP格式 7
2.4 GDI簡介 8
2.4.1 GDI原理 8
2.4.2 GDI基本圖形 9
3. 繪圖軟件設計 10
3.1 繪圖軟件功能模塊 10
3.2 軟件各功能模塊描述 11
3.2.1 鋼筆繪圖 11
3.2.2 繪制直線 11
3.2.3 繪制曲線 12
3.2.4 繪制封閉圖形 13
3.2.5 選擇繪圖樣式 13
3.2.6 橡皮擦 14
3.2.7 編輯 14
3.2.8 文件操作 14
3.3 系統(tǒng)數(shù)據結構及類的設計 14
3.3.1 主要類的層次結構 14
3.3.2 程序設計的小技巧——多態(tài)技術應用 15
3.4 程序操作流程圖和數(shù)據流圖 16
4. 繪圖軟件實現(xiàn) 18
4.1 圖形用戶界面 18
4.2 程序前臺界面的實現(xiàn) 19
4.3 圖形基類的實現(xiàn) 20
4.4 直線類的實現(xiàn) 20
4.6 曲線類的實現(xiàn) 20
4.6 橢圓、矩形類的實現(xiàn) 20
4.7 橡皮類的實現(xiàn) 20
總結 20
致謝 20
參考文獻 20
參考文獻
[7] 周鳴揚, 趙景亮. 精通GDI+編程[M]. 北京:清華大學出版社, 2004.
[8] 侯俊杰. 深入淺出MFC(第二版)[M]. 武漢:華中科技大學出版社
[9] 孫家廣, 楊長貴等編著. 計算機圖形學(新版)[M]. 北京:清華大學出版社, 2003.
[10] 唐澤圣, 董士海等譯. 計算機圖形學原理及實踐C語言描述[M]. 北京:機械工業(yè)出版社, 2004.
[11] 韓麗娜. 使用雙緩存來解決GDI下的閃爍問題[J]. 計算機工程與設計.2006,17.
[12] 賀亮. 剖析Windows的Win32兼容GDI技術[J]. 計算機應用與軟件.2005,12.
[13] Luse,Marv. Bitmapped Graphics programming in C++[M]. Reading, Mass. : Addison-Wesley Pub. Co
1.3萬字 34頁
包括開題和任務書
摘 要
隨著計算機硬件功能的不斷提高、系統(tǒng)軟件的不斷完善,計算機圖形學已廣泛應用于各個相關領域,并發(fā)揮愈來愈大的作用。其中,利用計算機對數(shù)字化圖像進行編輯處理的方法,也使電腦美術逐漸發(fā)展成為一種新興的藝術形式。
在計算機中,圖畫有兩種類型,即矢量圖和位圖。位圖較矢量圖更適合于表現(xiàn)那些色彩豐富、有明暗變化和大量細節(jié)的圖片,因此在數(shù)碼拍照、彩色印刷等方面有著廣泛的應用。
目前,有多種在計算機上實現(xiàn)位圖繪制的底層方法,最常用的有利用OpenGL,或利用Windows提供的GDI(Graphics Devices Interface,圖形設備接口)。
本文對Windows GDI、位圖等內容作了一定的學習和研究,并在GDI的基礎上實現(xiàn)了一個小型的位圖繪制軟件,其功能類似與Windows操作系統(tǒng)附件中的繪圖工具,能繪制直線、曲線、圓等多種圖形,具有橡皮擦,可設置繪圖樣式,可選擇復制圖形對象,最后輸出成位圖文件。
本文簡述了軟件實現(xiàn)所需的技術基礎,包括Windows GDI繪圖原理,位圖的基本原理等,并著重闡述了該繪圖軟件的用戶界面、每種圖形繪制設計原則、思路以及在程序中的實現(xiàn)方法。
關鍵詞:GDI,繪圖軟件,位圖
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 described the details of user interface, the design principle, and the ideas of each graphic in the software realization process.
Key Words: GDI, Bitmap, Graphics Software
目 錄
1 緒論 1
1.1 課題的背景及目的 1
1.2 國內外研究狀況和相關領域中已有的成果 1
1.3 設計和研究方法 2
1.4 論文結構 2
2 . 基本理論知識及應用 4
2.1 繪圖系統(tǒng)說明 4
2.2 MFC編程 5
2.2.1 MFC簡介 5
2.2.2 Windows消息機制 5
2.3 圖像格式——BMP格式 7
2.4 GDI簡介 8
2.4.1 GDI原理 8
2.4.2 GDI基本圖形 9
3. 繪圖軟件設計 10
3.1 繪圖軟件功能模塊 10
3.2 軟件各功能模塊描述 11
3.2.1 鋼筆繪圖 11
3.2.2 繪制直線 11
3.2.3 繪制曲線 12
3.2.4 繪制封閉圖形 13
3.2.5 選擇繪圖樣式 13
3.2.6 橡皮擦 14
3.2.7 編輯 14
3.2.8 文件操作 14
3.3 系統(tǒng)數(shù)據結構及類的設計 14
3.3.1 主要類的層次結構 14
3.3.2 程序設計的小技巧——多態(tài)技術應用 15
3.4 程序操作流程圖和數(shù)據流圖 16
4. 繪圖軟件實現(xiàn) 18
4.1 圖形用戶界面 18
4.2 程序前臺界面的實現(xiàn) 19
4.3 圖形基類的實現(xiàn) 20
4.4 直線類的實現(xiàn) 20
4.6 曲線類的實現(xiàn) 20
4.6 橢圓、矩形類的實現(xiàn) 20
4.7 橡皮類的實現(xiàn) 20
總結 20
致謝 20
參考文獻 20
參考文獻
[7] 周鳴揚, 趙景亮. 精通GDI+編程[M]. 北京:清華大學出版社, 2004.
[8] 侯俊杰. 深入淺出MFC(第二版)[M]. 武漢:華中科技大學出版社
[9] 孫家廣, 楊長貴等編著. 計算機圖形學(新版)[M]. 北京:清華大學出版社, 2003.
[10] 唐澤圣, 董士海等譯. 計算機圖形學原理及實踐C語言描述[M]. 北京:機械工業(yè)出版社, 2004.
[11] 韓麗娜. 使用雙緩存來解決GDI下的閃爍問題[J]. 計算機工程與設計.2006,17.
[12] 賀亮. 剖析Windows的Win32兼容GDI技術[J]. 計算機應用與軟件.2005,12.
[13] Luse,Marv. Bitmapped Graphics programming in C++[M]. Reading, Mass. : Addison-Wesley Pub. Co