我们如何在运行时使用鼠标在画布上画一条线 [英] how we can draw a line on canvas using mouse at runtime

查看:96
本文介绍了我们如何在运行时使用鼠标在画布上画一条线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应用程序,在其中添加了画布,我想借助鼠标在画布上的任意位置动态画一条线.

I am creating an application in which i added on canvas and I want to draw a line anywhere on the canvas dynamically with the help of mouse.

推荐答案

Did您检查了此内容.

银牌抽奖-具有图纸和聊天功能的基于Silverlight的协作白板 [
Did you checked this.

Silver Draw - A Silverlight Based Collaboration White Board with Drawing and Chat[^]


This [^] should surely help you do this task.
The code is however in vb.net and will needed to be tranlated to C#.


这篇关于我们如何在运行时使用鼠标在画布上画一条线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆