-
设计思路:
对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
-
用于图像处理的一些代码
用于图像处理的一些代码-for some image processing code
- 2022-04-15 07:44:40下载
- 积分:1
-
DCT变换及IDCT变换,为较为常用的变换,在许多信号处理中经常使用。...
DCT变换及IDCT变换,为较为常用的变换,在许多信号处理中经常使用。-DCT ??换 ??IDCT ??换 ?????衔 ???用的 ??换 ??在许 ?嘈???
- 2022-03-15 10:34:08下载
- 积分:1
-
VC++的信息波形显示程序,输入波形后,可以设置不同的编辑类型:NRZ法编码、单极归零码、双级非归零、双极归零码、AMI法编码、HDB3编码法等,并根据这些设置...
VC++的信息波形显示程序,输入波形后,可以设置不同的编辑类型:NRZ法编码、单极归零码、双级非归零、双极归零码、AMI法编码、HDB3编码法等,并根据这些设置选项生成波形图,软件界面友好,像是很专业的软件,如上图示。
-VC++ waveform display program information, input waveform, you can set different types of editors: NRZ encoding method, unipolar NRZ, dual-stage non-zero, bipolar NRZ, AMI law coding, HDB3 encoding method, etc. and, based on these settings option to generate a waveform diagram, the software user-friendly, such as very professional software icons above.
- 2023-06-17 21:15:03下载
- 积分:1
-
vowal detection in speech
vowal detection in speech
- 2022-03-22 14:04:18下载
- 积分:1
-
一个用MFC开发的画圆程序,简单实用,可作为编程爱好者的参考。...
一个用MFC开发的画圆程序,简单实用,可作为编程爱好者的参考。-a development with MFC Circle procedures simple and practical, can be used as a reference programming enthusiasts.
- 2023-05-17 11:50:04下载
- 积分:1
-
样条插值计算车门曲线
样条插值计算车门曲线-spline interpolation calculation door curve
- 2022-02-25 16:50:01下载
- 积分:1
-
vtk的小例子,希望对大家有用!
vtk的小例子,希望对大家有用!-vtk small examples, we hope to useful!
- 2022-08-11 08:05:56下载
- 积分:1
-
分形图形的vc实现
分形图形的vc实现-fractal graphics vc achieve
- 2022-03-24 23:45:00下载
- 积分:1
-
Based on OPenGL and c++ to build three
基于OPenGL和c++构建的三维可视化程序。-Based on OPenGL and c++ to build three-dimensional visualization program.
- 2022-01-26 06:16:14下载
- 积分:1