我要画一条直线随着鼠标的移动而移动,代码如下,但移动过后在原来的地方会留下轨迹。System::Void pictureBox1_MouseMove(System::Object  sender, System::Windows::Forms::MouseEventArgs  e) {
g.DrawLine(whitePen,e.X,0,e.X,e.Y);
 }我想恢复恢复原来的图像,但是重画全部图像效率太低了。有没有什么好的方法?