联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Drawing an ArrowLine - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为19221
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • PoolMan
  • Air Traffic Controller
  • virtualdub-win
  • CppUnit
  • Apache-SSL-Jserv
  • FCK editor
  • Async Professional
  • GLgraph
  • -= 更多 =-

    项目描述:
    Recently I had to develop a Graphics Software and wanted to add support for drawing an Arrow Line / Measuring Line. This was essential for the software and I had no option but to go over my trigonometry fundas. After churning for a couple of hours , I came up with this technique for drawing arrowheads at the end of a line.

    The Lines are drawn when you drag the mouse . The drawing mode used is R2_NOT .As long as the user is dragging the mouse , the Line is refreshing itself (by redrawing) . You need to include "math.h" in your View.cpp file .



    绘制带箭头的线

    最近我开发了一个图形软件并且想增加画带箭头的线 /测量线的支持。 这对软件是必要的,而且我除了详细察看我的 trigonometry fundas外,别无选择。 在几个小时的困惑之后,我发现了这个在线的末尾画箭头的技术。

    当你拖动鼠标的时候,线就被画了。使用的绘画模式为R2_NOT。随着用户拖拉鼠标,线条不断刷新(通过重划)。在你的View.cpp文件中尼需要扩进"math.h"文件。
    来源: http://www.codeguru.com/gdi/Arrow.html
    类别:
    发布者: cbd002

    最新发布源码包
    软件包 版本号 日期 本地下载
    ArrowDemo  1.0  2004-04-19 下载

    原始下载连接(国外) http://www.codeguru.com/code/legacy/gdi/ArrowDemo.zip

      » 合 作 伙 伴