-
设计思路:
对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
-
本文件内的程序实现了帧动画的操作,对计算机三维图形操作具有一定的借鉴意义...
本文件内的程序实现了帧动画的操作,对计算机三维图形操作具有一定的借鉴意义-The procedures of this document implements frame animation operation, three-dimensional graphics operations on the computer has certain reference significance
- 2022-01-26 06:43:39下载
- 积分:1
-
在对原图像进行双正交7/9三级小波分解后 ,在第二级的水平、垂直、对角以及第三级对角分量上加入水印系数,再经过小波反变换重构出图像。...
在对原图像进行双正交7/9三级小波分解后 ,在第二级的水平、垂直、对角以及第三级对角分量上加入水印系数,再经过小波反变换重构出图像。-in the original image Biorthogonal 7/9 3 wavelet decomposition, in the second-class level, vertical, diagonal, and the third-class right angle to add weight coefficient watermark, after wavelet-transform reconstruct images.
- 2023-02-08 07:25:03下载
- 积分:1
-
自己编的vb编程,这是肾球源代码!请多多指教!
自己编的vb编程,这是肾球源代码!请多多指教!-vb own series programming, which is kidney-source code! A great weekend!
- 2022-03-14 02:42:37下载
- 积分:1
-
Function: to map all of the Z line endpoint coordinates are changed to 0. Uses:...
功能:将图中所有直线的端点的Z座标均改为0。用途:用于处理PKPM软件形成的图中两直线不能fillet的问题。-Function: to map all of the Z line endpoint coordinates are changed to 0. Uses: PKPM software used to deal with the formation of two straight line graph should not fillet problem.
- 2023-04-03 20:55:03下载
- 积分:1
-
计算机图形学阵动画源代码,很有用的啊,在VC++6.0下编译通过。...
计算机图形学阵动画源代码,很有用的啊,在VC++6.0下编译通过。-array of computer graphics animation source code, a very useful ah, the VC 6.0 compiler passed.
- 2022-05-12 16:44:41下载
- 积分:1
-
this code is uploaded on Scan_segmentation Brain MRI of the code, we hope that t...
这次上传的代码是关于MRI Brain Scan_segmentation用的代码,希望能对大家有用-this code is uploaded on Scan_segmentation Brain MRI of the code, we hope that the useful
- 2022-07-08 06:35:59下载
- 积分:1
-
3D做2D的简单例子,用几种方法的对比说明每种方式的利弊
3D做2D的简单例子,用几种方法的对比说明每种方式的利弊
- 2023-04-23 17:35:03下载
- 积分:1
-
Read the digital information, according to the size of numerical mapping x
读取数字信息,根据数值大小绘制x光图片,并用bitmap绘制,包含openCV和库值-Read the digital information, according to the size of numerical mapping x-ray images, and bitmap drawing, and database that contains the value of openCV
- 2022-04-15 04:51:12下载
- 积分:1
-
It is a preparation of the VC, "based on BP's figures 0
这是一个使用VC++编写的“基于BP网络的数字0-9识别”的程序,还是比较经典实用的。-It is a preparation of the VC, "based on BP"s figures 0-9 network identification" procedures, or more classic practical.
- 2023-05-31 04:10:03下载
- 积分:1