MyPaint1.0

所属分类:绘图程序
开发工具:Visual C++
文件大小:1953KB
下载次数:142
上传日期:2005-11-17 10:28:43
上 传 者mars2006
说明:  设计思路: 对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, mapping results. Below is a procedure used mainly variables : the current drawing point size : int iGranularity current use of color : COLORREF curColor current graphics state : int iPaintStatus current graphics state attributes : int iPaintProperty before a mouse coordinates : jumping pOldPoint polygon starting point : jumping pStartPoint polygon end : When the redemption pEndPoint before the mouse coordinates )

文件列表:
MyPaint\MyPaint.opt (57856, 2005-11-05)
MyPaint\MyPaint.rc (12183, 2005-11-05)
MyPaint\MyPaint.dsw (537, 2005-11-03)
MyPaint\MyPaint.dsp (4973, 2005-11-05)
MyPaint\nodrop.cur (326, 2005-11-04)
MyPaint\DrawControlBar.h (1262, 2005-11-05)
MyPaint\MyPaint.clw (3080, 2005-11-05)
MyPaint\MyPaint.h (1367, 2005-11-03)
MyPaint\MyPaint.cpp (4099, 2005-11-03)
MyPaint\StdAfx.h (999, 2005-11-03)
MyPaint\StdAfx.cpp (209, 2005-11-03)
MyPaint\MainFrm.cpp (2546, 2005-11-05)
MyPaint\ColorDlg.h (1563, 2005-11-05)
MyPaint\Resource.h (1431, 2005-11-05)
MyPaint\MyPaint.aps (44572, 2005-11-05)
MyPaint\ColorDlg.cpp (2896, 2005-11-05)
MyPaint\MyPaintDoc.h (1517, 2005-11-05)
MyPaint\MainFrm.h (1421, 2005-11-05)
MyPaint\res\MyPaint.rc2 (399, 2005-11-03)
MyPaint\res\MyPaintDoc.ico (1078, 2005-11-03)
MyPaint\res\MyPaint.ico (1078, 2005-11-03)
MyPaint\res\cursor1.cur (326, 2005-11-04)
MyPaint\res\toolbar1.bmp (1318, 2005-11-05)
MyPaint\res (0, 2005-11-03)
MyPaint\MyPaintView.h (3019, 2005-11-05)
MyPaint\MyPaintDoc.cpp (1896, 2005-11-05)
MyPaint\MyPaint.ncb (82944, 2005-11-05)
MyPaint\Debug (0, 2005-11-03)
MyPaint\MyPaint.plg (1250, 2005-11-05)
MyPaint\DrawControlBar.cpp (726, 2005-11-05)
MyPaint\MyPaintView.cpp (14196, 2005-11-05)
MyPaint (0, 2005-11-03)

近期下载者

相关文件


收藏者