-
设计思路:
对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
-
For MATLAB source code for fingerprint recognition package, with engineering sig...
用于指纹识别的MATLAB源代码程序包,具有工程上的意义-For MATLAB source code for fingerprint recognition package, with engineering significance
- 2022-07-14 08:11:55下载
- 积分:1
-
数字电路设计――四位十进制数字频率计
数字电路设计――四位十进制数字频率计-digital circuit design-- four decimal digits Cymometer
- 2022-06-26 13:53:27下载
- 积分:1
-
显示图形的光照效果源码
显示图形的光照效果源码-graphics show the lighting effect FOSS
- 2022-01-30 16:01:17下载
- 积分: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
-
A graphic drawing program, be able to draw graphics, including triangular and re...
一个图形绘制程序,能够绘制的图形包括点线三角形和长方形。-A graphic drawing program, be able to draw graphics, including triangular and rectangular point line.
- 2022-03-24 13:32:12下载
- 积分:1
-
直方图
直方图- Histogram
- 2022-07-12 07:53:26下载
- 积分:1
-
黑白棋
能运行
mfc
功能强大
程序教程
黑白棋
能运行
mfc
功能强大
程序教程
-good
- 2022-07-17 19:24:45下载
- 积分:1
-
一所学校在创业的帮助人源代码
一个于学VC的人有帮助的源代码-a school in the VC help people source code
- 2023-02-11 09:30:03下载
- 积分:1
-
主要是计算机图形学中的扫描线填充算法
主要是计算机图形学中扫描线填充算法的实现-Mainly in computer graphics scanline fill algorithm
- 2022-03-15 22:36:00下载
- 积分:1