文件名称:MyPaint1.0

  • 所属分类:
  • 绘图程序
  • 资源属性:
  • [Windows] [Visual C] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 1.91mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • m***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

设计思路:

对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

.......\ColorDlg.cpp

.......\ColorDlg.h

.......\Debug

.......\DrawControlBar.cpp

.......\DrawControlBar.h

.......\MainFrm.cpp

.......\MainFrm.h

.......\MyPaint.aps

.......\MyPaint.clw

.......\MyPaint.cpp

.......\MyPaint.dsp

.......\MyPaint.dsw

.......\MyPaint.h

.......\MyPaint.ncb

.......\MyPaint.opt

.......\MyPaint.plg

.......\MyPaint.rc

.......\MyPaintDoc.cpp

.......\MyPaintDoc.h

.......\MyPaintView.cpp

.......\MyPaintView.h

.......\nodrop.cur

.......\ReadMe.txt

.......\res

.......\...\cursor1.cur



.......\...\MyPaint.rc2





.......\Resource.h

.......\StdAfx.cpp

.......\StdAfx.h

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org