如何删除以前绘制的线条 [英] How to delete the previously drawn lines

查看:89
本文介绍了如何删除以前绘制的线条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用C#在画布上以虚线表示绘制一条线。

现在,在Mousemove事件中,虚线被绘制为光标移动的位置。但是绘制的线条即使我的鼠标移动到新位置,前一个鼠标位置仍然保持不变。

我的要求是绘制一条虚线和鼠标光标,

所以,现在问题很热,在我的鼠标移动中擦除先前绘制的虚线?

I am trying to draw a line in dotted representation on a canvas using C#.
Now on Mousemove event, the dotted lines are drawn as and where the cursor is moved.But the line drawn in the previous mouse position still remains even when my mouse is moved to a new position.
My requirement is to draw a single dotted line along with the mouse cursor,
So, now question is hot to erase the previously drawn dotted lines on my mouse move?

推荐答案

这篇关于如何删除以前绘制的线条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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