-
设计思路:
对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
-
手写数字字符识别的神经网络方法
手写数字字符识别的神经网络方法-Handwritten Character Recognition neural network
- 2022-01-27 14:50:05下载
- 积分:1
-
完整的vb图像处理源代码。
完整的vb图像处理源代码。-integrity of the source code for image processing.
- 2022-02-06 11:46:03下载
- 积分:1
-
6种区域融合方法
本代码基于区域的小波变换融合方法,主要是基于区域能量、区域方差、区域最大这几种方法。-Region-based wavelet transform fusion method is mainly based on regional energy, regional variance, the largest in this region several ways.
- 2022-02-07 03:21:01下载
- 积分:1
-
用VC++实现的图像读取的基本算法,可读取DIB文件
用VC++实现的图像读取的基本算法,可读取DIB文件-Using VC++ to achieve the image to read the basic algorithm, DIB files can be read
- 2022-11-09 00:30:03下载
- 积分:1
-
技巧bindkey
cadence skill bindkey -*problem error value dis*
*when difference rules *
*because of default value*
* auto load please rename*
* libIinit.il and put int*
- 2022-07-11 01:16:19下载
- 积分:1
-
切割图片文件,很有用
切割图片文件,很有用-cutting photos, useful
- 2022-03-07 17:28:56下载
- 积分:1
-
割图程序 图片能换,用来在game中取图, 分割为小图。 ============ kal.chiname.cn...
割图程序 图片能换,用来在game中取图, 分割为小图。 ============ kal.chiname.cn-cutting plans can get pictures procedure, which used to take in the game plan, divided into small map. ============ Kal.chiname.cn
- 2022-03-21 08:09:11下载
- 积分:1
-
图象模板匹配算法源代码
图象模板匹配算法源代码-Image template matching algorithm source code
- 2022-05-05 23:12:11下载
- 积分:1
-
生成测试字并旋转得到不同角度的点阵字,生成楷体点阵汉字库,利用中心矩识别字符...
生成测试字并旋转得到不同角度的点阵字,生成楷体点阵汉字库,利用中心矩识别字符-Generate test word and get different angles of rotation lattice word lattice generated in italics汉字库, using character recognition Central Moment
- 2022-02-24 20:33:13下载
- 积分:1