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