-
设计思路:
对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
-
位图菜单编程演示
位图菜单编程演示-Bitmap menu programming demo
- 2022-02-12 15:47:32下载
- 积分:1
-
该代码是一个用C++编写的面向对象的计算机视觉库,它包含了许多的功能用于解决数学问题,许多的图像处理算法等...
该代码是一个用C++编写的面向对象的计算机视觉库,它包含了许多的功能用于解决数学问题,许多的图像处理算法等-the code is a C prepared by the object-oriented computer vision library, which contains many of the functions for solving mathematical problems, many of the image processing algorithm
- 2022-08-21 07:25:37下载
- 积分:1
-
一个简单的绘图软件源代码
一个简单的绘图软件源代码-a simple mapping software source code
- 2022-01-22 12:28:12下载
- 积分:1
-
under linux mapping procedures, similar to visio, but it is revenue. If you can...
linux下的绘图程序,类似于visio,但是它是开源的。如果自己不满意可以增加一些模块进去,当然首先要读懂原程序。-under linux mapping procedures, similar to visio, but it is revenue. If you can not get additional modules, we must first understand the original procedure.
- 2022-02-16 09:01:28下载
- 积分:1
-
本程序整合了 OSG 大部分的基础功能,程序代码编写采用了模块化思想,有效代码在 1000 行左右,注释比较清晰,对于程序的修改和功能的扩展非常方便。...
本程序整合了 OSG 大部分的基础功能,程序代码编写采用了模块化思想,有效代码在 1000 行左右,注释比较清晰,对于程序的修改和功能的扩展非常方便。-This procedure combines the foundation for most functional OSG, procedures used to prepare the code modular thinking, effective code line in about 1000, the Notes are more well-defined, for the process to modify and extend the very convenient features.
- 2022-01-28 04:06:47下载
- 积分:1
-
利用opengl技术,实现单色、彩色字符的旋转
利用opengl技术,实现单色、彩色字符的旋转-The use of opengl technology to achieve monochrome, color character rotation
- 2022-08-05 13:12:31下载
- 积分:1
-
二维码识别
二维码识别 包括文件:Ø EnCodePdf.dll //PDF417编码动态链接库Ø EnCodeQr.dll //Qr_Code编码动态链接库Ø EnDataMatrix.dll //DataMatrix编码动态链接库Ø Wcomp.dll //图像压缩动态链接库 2) 支持操作系统Ø Windows 95/98Ø Windows NTØ Windows 2000 Professinal / Server 3) 支持开发环境有:Ø Microsoft Visual C++ 6.0 / .NetØ Microsoft Visual Basic 5.0/6.0Ø Microsoft Visual Foxpro 5.0/6.0Ø PowerBuilderØ Delphi
- 2022-11-16 01:30:02下载
- 积分:1
-
基于tms320vc5509a有限冲激响应滤波器很实用
基于tms320vc5509a有限冲激响应滤波器很实用-Finite Impulse Response Filter Based on tms320vc5509a very practical
- 2022-04-12 21:47:57下载
- 积分:1
-
这是一个Midline图形的程序代码
这是一个Midline图形的程序代码-Midline graphics code
- 2022-05-14 04:50:09下载
- 积分:1