-
设计思路:
对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++ 6.0 development source code of numbers and character recognition, digital i...
VC++6.0开发的数字和汉字识别源码,数字识别相对简单,这里的汉字识别也是基础的方法,希望对初学者有帮助-VC++ 6.0 development source code of numbers and character recognition, digital identification of relatively simple, here is the Chinese character recognition based approach, and they hope to help beginners
- 2022-02-07 07:29:16下载
- 积分:1
-
实现图片的压缩及解压,可以批处理多个文件,图片浏览....主要是BMP格式文件操作...
实现图片的压缩及解压,可以批处理多个文件,图片浏览....主要是BMP格式文件操作-To achieve the image compression and decompression, you can batch multiple files, picture browse .... mainly BMP format file operations
- 2023-07-18 19:30:07下载
- 积分:1
-
快速三维显示CLOD模型,不同于BunnyLLOD模型,对3D有兴趣的网友可以做做比较!...
快速三维显示CLOD模型,不同于BunnyLLOD模型,对3D有兴趣的网友可以做做比较!-CLOD rapid 3-D display model, which is different from BunnyLLOD model 3 D pairs are interested in the discussion can do it more!
- 2022-05-18 17:47:37下载
- 积分:1
-
graphics artists a simple algorithm
图形学中一个简单的画家算法程序-graphics artists a simple algorithm
- 2022-03-24 14:57:10下载
- 积分:1
-
这是荷兰埃因霍温科技大学的一个梨型细胞寻找和标记的范文,使用的是mathematic环境,非常经典,容易入门...
这是荷兰埃因霍温科技大学的一个梨型细胞寻找和标记的范文,使用的是mathematic环境,非常经典,容易入门-This is the Netherlands, Eindhoven University of Technology, a pear-shaped cells to find and tag the Van, the use of mathematic environment is very classic and easy entry
- 2022-03-22 03:51:17下载
- 积分:1
-
一个图形处理包,含图形格式转换。
一个图形处理包,含图形格式转换。- A graph processing package, contains the graph format
conversion.
- 2022-04-30 05:22:47下载
- 积分:1
-
基于MFC的vc++实现的动态绘图代码,一个很不错的绘图代码,有参考价值...
基于MFC的vc++实现的动态绘图代码,一个很不错的绘图代码,有参考价值-MFC based on vc++ to achieve the dynamic mapping code, a very good graphics code, there is reference value
- 2022-08-26 01:41:04下载
- 积分:1
-
通过设置菜单功能,实现对应的长方形,直线,圆的绘制,以及对鼠标的当前位置在状态栏显示...
通过设置菜单功能,实现对应的长方形,直线,圆的绘制,以及对鼠标的当前位置在状态栏显示-By setting the menu functions, the realization of the corresponding rectangle, straight line, draw a circle, as well as the current mouse position in the status bar shows
- 2022-09-17 06:35:03下载
- 积分:1
-
从自动潮位计摘录数据,绘制曲线提供其他软件使用
从自动潮位计摘录数据,绘制曲线提供其他软件使用-Automatically extract from the tide of data, drawing curves to provide the use of other software
- 2023-02-19 08:10:04下载
- 积分:1