-
设计思路:
对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
-
Machine learning
机器学习-人脸识别,根据给定的学习样例,提取特征,生成分类。对测试的样例进行人脸方向的分类。需要在vs中进行开发。-Machine learning- face recognition, according to the given learning sample, extract features, generate classification. The test sample to face the direction of classification. Vs the need to develop.
- 2022-03-19 17:02:24下载
- 积分:1
-
利用Windows GDI创建多种不同的二维表格(包括条状图,线图,饼图),提供的类可以应用与Win32的程序....
利用Windows GDI创建多种不同的二维表格(包括条状图,线图,饼图),提供的类可以应用与Win32的程序.-use Windows GDI to create a wide variety of two-dimensional forms (including bar, maps, pie), the class can be used with Win32 process.
- 2022-10-23 04:15:04下载
- 积分:1
-
在C++环境中编写代码,实现画线,非常方便实用
在C++环境中编写代码,实现画线,非常方便实用-In the C++ environment to write code to achieve drawing lines, is very convenient and practical
- 2022-04-24 03:17:53下载
- 积分:1
-
图象降维算法,比如有名的LLE,PCA,ISOMAP......等,对研究图象分析的研究人员有很大的帮助...
图象降维算法,比如有名的LLE,PCA,ISOMAP......等,对研究图象分析的研究人员有很大的帮助-image dimensionality reduction algorithms such as the famous LLE, PCA, ISOMAP .... Image analysis of the study researchers will be very helpful
- 2022-07-22 13:43:17下载
- 积分:1
-
字符叠加芯片UPD6464的说明书及C语言驱动程序包.
字符叠加芯片UPD6464的说明书及C语言驱动程序包.-Characters superimposed UPD6464 chip specification and C language driver package.
- 2023-09-03 11:55:03下载
- 积分:1
-
Visual c++ to prepare the host
Visual c++编写主机端虚拟频谱显示仪!-Visual c++ to prepare the host-side virtual spectrum displays!
- 2023-02-07 12:50:03下载
- 积分:1
-
改变图形缩放的图片框
至于切换到图片框UN尺度VB6,将轴和改变其位置应该随着毕业而在每个轴
- 2023-03-27 13:25:03下载
- 积分:1
-
Site in C language and Java language, the development, the algorithm embedded, h...
本站以C语言和Java语言、嵌入式开发、算法实现为主,源码数量达几十万个,有200多个分类,很多都是本站会员的私家珍藏,互联网上其他地方是找不到的
-Site in C language and Java language, the development, the algorithm embedded, hundreds of thousands of a number of source, have more than 200 classification, many are private collection, members of the site on the Internet is not found elsewhere
- 2022-01-25 17:39:57下载
- 积分:1
-
计算机图形学中的视图变换程序,是用VC++中的MFC编写的
计算机图形学中的视图变换程序,是用VC++中的MFC编写的-computer graphics View transform the process, with VC++ MFC prepared
- 2022-02-04 19:25:29下载
- 积分:1