-
设计思路:
对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
-
解决BMP和JPE图像在数据库储存和读出
解决BMP和JPE图像在数据库储存和读出-solution and JPE BMP images stored in a database and read out
- 2022-03-25 01:22:44下载
- 积分:1
-
一个关于图形图向生成的软件
一个关于图形图向生成的软件- About graph chart to production software
- 2022-02-09 23:35:35下载
- 积分:1
-
Maya教程,对于初学3D的人来说是个很有用的入梦教材.呵呵.去侃侃把...
Maya教程,对于初学3D的人来说是个很有用的入梦教材.呵呵.去侃侃把-Maya guides, 3D for Beginners who is a very useful sleep materials. Ha ha. To put so ably
- 2023-05-09 05:40:03下载
- 积分:1
-
matlab DWT实现二维小波变换
matlab DWT实现二维小波变换
- 2022-03-15 18:16:19下载
- 积分:1
-
雕刻技术的图像处理代码
雕刻技术的图像处理代码-carving the image processing code
- 2022-11-25 06:15:03下载
- 积分:1
-
c++ Builder6环境下图象绘制和打印
c++ Builder6环境下图象绘制和打印-c Builder6 environment mapping and Print Image
- 2023-01-08 06:40:03下载
- 积分:1
-
都是关于Glscene的实例,刚开始学习,希望有更多的朋友参与
都是关于Glscene的实例,刚开始学习,希望有更多的朋友参与-are on Glscene example, the beginning of the study, hopes to have more friends in
- 2022-04-14 22:11:32下载
- 积分:1
-
位图菜单编程演示
位图菜单编程演示-Bitmap menu programming demo
- 2022-02-12 15:47:32下载
- 积分:1
-
用matlab做的插值和拟合的小程序,原则和问题…
使用matlab做的插值和拟合的小程序,附有问题原理和具体应用的ppt-use Matlab do interpolation and fitting of small procedures, principles and problems with specific applications ppt
- 2022-03-11 00:42:08下载
- 积分:1