首页 | 本学科首页   官方微博 | 高级检索  
     

Windows编程中的图形输出
引用本文:胡春安,欧阳城添.Windows编程中的图形输出[J].浙江工业大学学报,2006,34(5):546-549.
作者姓名:胡春安  欧阳城添
作者单位:江西理工大学,信息工程学院,江西,赣州,341000
摘    要:Windows程序的所有输出其实都是图形.初学者在学Windows编程时,对图形输出常感到困惑,不知如何下手.在Windows编程中要想使用GDI对图形进行输出,首先就必须理解设备上下文、当前作图工具(如什么样的线、什么样的刷子和什么样的字体等)以及如何把GDI逻辑坐标映射到设备坐标等概念.通过围绕上述几个概念对Windows编程中的图形输出进行了方法介绍,并举例给出了绘制图形的过程,最后对利用MFC进行图形输出也作了介绍.

关 键 词:绘图  函数
文章编号:1006-4303(2006)05-0546-04
收稿时间:2006-01-03
修稿时间:2006年1月3日

Graphics of Windows program output
HU Chun-an,OUYANG Cheng-tian.Graphics of Windows program output[J].Journal of Zhejiang University of Technology,2006,34(5):546-549.
Authors:HU Chun-an  OUYANG Cheng-tian
Affiliation:College of Information Engineering, Jiangxi University of Science and Technology, Ganzhou 341000, China
Abstract:All outputs of Windows program are graphics.Most of beginners often feel puzzled and don't know how to design a Windows program.Before using the GDI in Windows program,the properties of the device,painting tools(for example what is the line,what is the brush,what is the font),and how to map the GDI logical coordinates to the coordinates of the device have to be comprehended.In this paper,the concepts about GDI will be introduced.The case of graphics output in Windows program is explained.Finally how to use MFC for graphics output is presented.
Keywords:GDI  DC  MFC
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号