-
设计思路:
对Windows XP自带的画笔程序进行分析,一般User画图过程:
首先鼠标选择绘图工具,然后选择颜色,接着按User需要作图。User对...
设计思路:
对Windows XP自带的画笔程序进行分析,一般User画图过程:
首先鼠标选择绘图工具,然后选择颜色,接着按User需要作图。User对产出的图像进行操作。
对图形元素抽象出公共属性,设计我的画板的作图过程:
选择工具 、画预览效果、User满意并确定、绘制效果。
下面是程序用到主要变量:
当前绘图点粒度:int iGranularity
当前使用颜色:COLORREF curColor
当前绘图状态:int iPaintStatus
当前绘图状态属性:int iPaintProperty
前一个鼠标坐标:CPoint pOldPoint
多边形起点:CPoint pStartPoint
多边形终点:CPoint pEndPoint
当前鼠标坐标:CPoint pCurPoint
输出文本字符串缓存:CString strTextOut
对典型操作过程(画矩形)描述:
用户选择工具_RECTANGLE(使iPaintStatus=_RECTANGLE)、
选择绘图颜色(设定curColor)、
用户按下鼠标左键使绘图状态属性为预览(iPaintProperty=_PREVIEW)、
用户移动鼠标(绘制图形的橡皮线效果)
用户放开左键(绘制图形的实线效果)
-design : Windows XP"s own brush analysis procedures, the general User drawing process : first choice mouse drawing tool, then select colors, followed by Graphic User needs. User to output images to operate. Right abstract graphic elements from the public properties, design I slate of mapping process : select tools, painting preview effects, User satisfaction and identification, mappi
- 2022-03-11 03:27:30下载
- 积分:1
-
一个简单的光线跟踪的源代码
A Simple Raytracer source code
- 2022-07-15 20:53:15下载
- 积分:1
-
一个控制系统中离散系统的模拟和结果演示,其中有Matlab运行结果图。...
一个控制系统中离散系统的模拟和结果演示,其中有Matlab运行结果图。-a discrete control system simulation system and the results of the demonstration, including Matlab running results map.
- 2022-11-29 06:10:03下载
- 积分:1
-
研究生毕业是编写的图像检索的程序,有相似度匹配,特征提取,检索运行效果好...
研究生毕业是编写的图像检索的程序,有相似度匹配,特征提取,检索运行效果好-Graduate school is to write the image retrieval process, there is similarity matching, feature extraction, retrieval operation good results
- 2022-07-26 22:07:13下载
- 积分:1
-
introduction.to.direct3d9中文版(?士兵版)书附带..
Introduction.To.Direct3D9中文版(翁云兵版)书附带源码-Introduction.To.Direct3D9 Chinese version (??soldiers Edition) book incidental source
- 2022-06-30 18:59:15下载
- 积分:1
-
如何让CDC上输出的文字、图形具有保持功能,集合类 CPtrArray的使用,CPaintDC与CClientDC的区别与应用,OnPaint与OnDraw在C...
如何让CDC上输出的文字、图形具有保持功能,集合类 CPtrArray的使用,CPaintDC与CClientDC的区别与应用,OnPaint与OnDraw在CView中的关系及实现内幕,滚动窗口的实现,坐标空间,映射方式,设备坐标与逻辑坐标的转换。元文件设备描述表的使用,如何利用兼容DC实现图形的保存和再现。 -CDC on how to output text, graphics have to keep feature, CPtrArray use of collections, CPaintDC with CClientDC and application of the distinction, OnPaint and OnDraw in CView relations and realize the insider, the realization of a rolling window, the coordinates of space, mapping the way device coordinates and logical coordinates conversion. Metafile device use, how to use DC-compatible graphics realize the preservation and reproduction.
- 2022-01-25 22:58:47下载
- 积分:1
-
用两个窗口实现三维物体显示的源程序,编程环境为.net2003和d3d。...
用两个窗口实现三维物体显示的源程序,编程环境为.net2003和d3d。-Realize two windows with three-dimensional objects displayed on the source code, programming environment. Net2003 and d3d.
- 2022-03-26 01:04:52下载
- 积分:1
-
Bezier curve describes the algorithm and procedures realize
描述了Bezier曲线的算法与程序实现
-Bezier curve describes the algorithm and procedures realize
- 2022-06-30 14:54:50下载
- 积分:1
-
一个简单的电子元器件绘制源代码,实现了一些基本功能,适合初学者使用。...
一个简单的电子元器件绘制源代码,实现了一些基本功能,适合初学者使用。-a simple electronic components mapping the source code to achieve some basic functions, for beginners.
- 2022-06-26 18:26:44下载
- 积分:1
-
graphics artists a simple algorithm
图形学中一个简单的画家算法程序-graphics artists a simple algorithm
- 2022-03-24 14:57:10下载
- 积分:1