-
设计思路:
对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
-
multi
多窗口多模式(角度)演示3d动画,c实现-multi-modal window (perspective) demonstration 3d animation, c achieve
- 2022-02-22 02:58:47下载
- 积分:1
-
resources written procedures, dynamic effects, has collated
资源编写的程序,动态效果,有整理
- 2022-03-24 15:34:56下载
- 积分:1
-
直线的数字微分算法
直线的数字微分算法-Algorithm for digital differential of straight line.
- 2022-01-21 03:29:27下载
- 积分:1
-
一个不错的3d程序,vb编写
一个不错的3d程序,vb编写-a good 3d procedures, the preparation of vb
- 2022-07-25 01:19:14下载
- 积分:1
-
曲线曲面重建方法研究,发现一个关于曲线曲面有关算法方面的好资料,与大家分享下.可作逆向工程研究参考....
曲线曲面重建方法研究,发现一个关于曲线曲面有关算法方面的好资料,与大家分享下.可作逆向工程研究参考.-Reconstruction of curves and surfaces and found that a related algorithm for curves and surfaces on good information to share with you the next. Can be used for reverse engineering study.
- 2022-01-26 05:56:28下载
- 积分:1
-
Windows graphical programming source code, this book talked about a more compreh...
Windows图形编程源代码 ,这本书讲的比较全面,内容也很详实-Windows graphical programming source code, this book talked about a more comprehensive and its contents are very informative
- 2023-05-06 03:20:04下载
- 积分:1
-
利用VC++ 6.0实现了画图板中画笔的一些功能
利用VC++ 6.0实现了画图板中画笔的一些功能-VC 6.0 plate drawing a brush of some functional
- 2022-05-16 20:22:03下载
- 积分:1
-
一个实现了对BMP图像进行基本图像处理的程序,包括图像几何变化,FFT,和二值化等...
一个实现了对BMP图像进行基本图像处理的程序,包括图像几何变化,FFT,和二值化等-A realization of BMP images of the basic image processing procedures, including changes in image geometry, FFT, and so on Binarization
- 2023-05-18 02:25:02下载
- 积分:1
-
C Language Circle the midpoint algorithm, and in accordance with scanning lines...
用C语言实现的中点画圆算法,并根据扫描线种子填充算法来填充圆形。-C Language Circle the midpoint algorithm, and in accordance with scanning lines seed fill algorithm to fill round.
- 2023-03-19 00:50:03下载
- 积分:1