-
设计思路:
对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
-
LabVIEW入门组竞赛获奖程序,可供初学LabVIEW者使用.
LabVIEW入门组竞赛获奖程序,可供初学LabVIEW者使用.-LabVIEW Getting Started Group Contest Awards program
- 2022-01-28 12:32:35下载
- 积分:1
-
为PDF文件格式,对房内的细节
该文档格式为pdf,里边详细介绍了对clplot实时曲线类的一些改进方法,增加打印预览,数据保存,文件打开,并且附有完整的程序代码,不失为一篇好文章-The document format for the pdf, of the inside details of real-time curve clplot some type of improvement to increase the print preview, data, documents opened, and with the complete program code is, after all, a good article
- 2022-02-05 00:19:35下载
- 积分:1
-
用风险投资来准备反
用vc编写得图像的反色、图像转置、维纳滤波处理得代码-Vc was used to prepare the anti-color images, image transpose, Wiener filter handling code
- 2023-07-29 14:05:03下载
- 积分:1
-
本程序包括打开存储一幅图像,实现图像的中值滤波和直方图均衡。...
本程序包括打开存储一幅图像,实现图像的中值滤波和直方图均衡。-opened a store images, the Image median filtering and histogram equalization.
- 2023-03-23 14:55:03下载
- 积分:1
-
hoschek 方法用于曲线拟合 在Hoschekfit 文件中输入数据,拟合曲线段数,拟合误差,最大迭代次数就可以...
hoschek 方法用于曲线拟合 在Hoschekfit 文件中输入数据,拟合曲线段数,拟合误差,最大迭代次数就可以-curve fitting method for the Hoschekfit document input data, the number of curve fitting, fitting error, the largest number of iteration can
- 2022-02-07 19:52:06下载
- 积分:1
-
功能完善的2D矢量绘图软件,用来学习mfc很不错
功能完善的2D矢量绘图软件,用来学习mfc很不错-Featured 2D vector graphics software, used to very good learning mfc
- 2022-01-25 15:52:51下载
- 积分:1
-
世界编程大赛作品“幽灵古堡”值得大家学习。
世界编程大赛作品“幽灵古堡”值得大家学习。-World Programming Contest entries "ghost castle" deserve study.
- 2023-02-23 06:40:03下载
- 积分:1
-
文字识别系统,包括文字图象的预处理过程,用visual c++开发,识别率比较高...
文字识别系统,包括文字图象的预处理过程,用visual c++开发,识别率比较高-Character Recognition system, including language and graphic pretreatment process, with visual c development, a relatively high recognition rate
- 2023-07-25 03:25:04下载
- 积分:1
-
code about k
K近邻分类法的实现代码,是一个基于win32的非界面程序-code about k-nearest neighbor
- 2022-01-28 08:24:40下载
- 积分:1