-
设计思路:
对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
-
一个vb编的二维图形引擎
一个vb编的二维图形引擎-a vb series of the two-dimensional graphics engine
- 2023-04-06 00:40:04下载
- 积分:1
-
MDI, as more and more documents, covering a wide variety of chart mapping, pie,...
MDI多文档多视,包含多种chart的绘制,饼图,直方图,曲线图等等,还可实现局部放大-MDI, as more and more documents, covering a wide variety of chart mapping, pie, histogram, curves, etc., can be implemented with local amplification
- 2022-03-01 20:57:44下载
- 积分:1
-
老外写的样条书上的程序2
老外写的样条书上的程序2-foreigner writing of the book the kind of programs on the 2
- 2022-04-25 04:19:09下载
- 积分:1
-
保存屏幕上的图形,是用的是GIF格式,可以用来了解gif图形格式...
保存屏幕上的图形,是用的是GIF格式,可以用来了解gif图形格式-GIFgif
- 2022-07-01 17:28:43下载
- 积分:1
-
sobel 图像算子算法
sobel 图像算子算法-image segmentation algorithm Operator
- 2022-01-24 18:46:02下载
- 积分:1
-
在灰度图像中进行直线检测,带实验效果图像。利用快速Hough变换,能够正确查找线段端点。...
在灰度图像中进行直线检测,带实验效果图像。利用快速Hough变换,能够正确查找线段端点。-In the gray image in a straight line detection, the experiment with the effect of the image. Using fast Hough transform, to correctly segment endpoint search.
- 2022-08-13 10:53:16下载
- 积分:1
-
VTK_安装,how to install vtk
and how to debug
VTK_安装,how to install vtk
and how to debug-VTK_ installation, how to install vtkand how to debug
- 2022-02-03 00:29:35下载
- 积分:1
-
figures water to the section of code technology, mainly for demonstration purpos...
数字水以技术的一段代码,主要用于演示复制交流之用-figures water to the section of code technology, mainly for demonstration purposes copy exchange
- 2023-05-21 19:20:03下载
- 积分:1
-
ezplot为了使用仿真计算二进制
用ezplot命令来计算模拟一维二元光子晶体的反射率-Ezplot order to use simulation to calculate the binary one-dimensional photonic crystal reflectivity
- 2023-06-18 02:10:03下载
- 积分:1