如何删除以前绘制的线条
问题描述:
我正在尝试使用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?
答