-
设计思路:
对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
-
一个映射的网络拓扑图的代码,可以直接约束求解,不…
一个绘制网络拓扑结构的图的vc代码,可以直接约束求解,而且可以用箭头直线连接2个网格图形!-A mapping of network topology map vc code, you can direct constraint solving, but also can use the arrow straight line connecting two grid graphics!
- 2023-08-26 20:05:03下载
- 积分:1
-
A BMP truecolor to JPEG encoder
A BMP truecolor to JPEG encoder
- 2022-01-26 05:29:42下载
- 积分:1
-
a simple procedure MFC
一个简单的MFC程序-a simple procedure MFC
- 2022-12-20 03:35:03下载
- 积分:1
-
计算机图形学之多边形绘制的源码及其程序。
计算机图形学之多边形绘制的源码及其程序。-Computer graphics rendering of the source polygon and its procedures.
- 2022-02-03 16:30:44下载
- 积分:1
-
Canny edge detection algorithm to achieve
Canny边检测算法的实现-Canny edge detection algorithm to achieve
- 2022-08-16 11:29:53下载
- 积分:1
-
Mallet 算法及滤波器设计
Mallet 算法及滤波器设计-Mallet algorithms and filter design
- 2022-08-25 07:39:49下载
- 积分:1
-
数据读取。实验数据量过大时可用该程序读取其中部分数据。...
数据读取。实验数据量过大时可用该程序读取其中部分数据。-Data read. Experimental data may be too much to read one of the program part of the data.
- 2023-08-04 04:45:03下载
- 积分:1
-
实现最陡下降法,研究步长因子和特征扩散度对收敛速度的影响...
实现最陡下降法,研究步长因子和特征扩散度对收敛速度的影响-Achieve the steepest descent method to study the characteristics of step length factor and the proliferation of degree of influence on the convergence rate
- 2022-07-19 06:30:05下载
- 积分:1
-
一个人编写的用c做得俄罗斯方块 一个人编写的用c做得俄罗斯方块...
一个人编写的用c做得俄罗斯方块 一个人编写的用c做得俄罗斯方块-Prepared by a person doing Tetris c prepared by a person doing Tetris c
- 2022-01-25 14:47:55下载
- 积分:1