基于VC++的二维绘图程序设计
首发时间:2008-11-10
摘要:Microsoft Visual C++ 6.0是Microsoft公司开发的基于C/C++的集成开发工具,它是Visual Studio中功能最为强大、代码效率最高的开发工具。MFC类库是VC++中直接由Microsoft提供的一种编程资源,它集成了大量己定义好的图形类,还可以封装不同的类,方便用户调用与拓展。正因为如此,用VC++来绘图是很有优势的。本文以Microsoft Visual C++ 6.0作为系统开发的平台, 建立了一个图形基类CDraw,并以此继承了相关的图形类,设计了二维绘图程序。该程序实现了图形绘制(主要包括点、直线、平行线、垂线、切线、贝塞尔曲线、平行四边形、矩形、圆、椭圆、正多边形、表格等)、图形操作(复制、移动、旋转、镜相、放大、缩小等)、图形存储、文字编辑、绘图辅助等功能。
关键词: 图形绘制 图形操作 Microsoft Visual C++ 6.0
For information in English, please click here
2D drawing design based on VC+ +
Abstract:Visual C++6.0 is integrated development tool based on C/C++,which is developed by Microsoft Corporation. It is also the most powerful development tool with high code efficiency. MFC class library is a kind of programming resources directly provided by Microsoft Corporation, which has integrated great many drawing classes defined well, can encapsulate different classes,and is convenient for users to call and expand. Just because of this, it has obvious superiority in drawing to use VC++.This paper uses Microsoft Visual C++ 6.0 as exploitation environment, a basic drawing class-CDraw is created, then inherits other drawing classes.Finally, 2D drawing programm is designed. Point, straight line, parallel line, vertical line,tangent line, bezier curve, parallelogram, rectangular, circle, Ellipse, regular polygon, table, and the like can be drawed. Graphical operation,such as copying, moving, rotating, mirroring, scaling and so on, drawing storage, adding words, assistant etc. are also included in this program.
Keywords: graphic drawing graphical operation Microsoft Visual C++ 6.0
基金:
论文图表:
引用
No.2555132562212262****
同行评议
共计0人参与
勘误表
基于VC++的二维绘图程序设计
评论
全部评论0/1000