c#实现windows画板画直线拖放效果,图象绘制使用
Graphics.FromImage(picturebox.Image)
原理是在mousedown的时候将picturebox.Image保存一份名为bak
mousemove的时候判断按下按键,先drawimage(bak,0,0),再画线
mousedown先drawimage(bak,0,0),再画线现在的问题是mousedown画下的线不能显示出来,要用picturebox.refresh()
请问这是为什么?还有picturebox.update有什么区别?谢谢
Graphics.FromImage(picturebox.Image)
原理是在mousedown的时候将picturebox.Image保存一份名为bak
mousemove的时候判断按下按键,先drawimage(bak,0,0),再画线
mousedown先drawimage(bak,0,0),再画线现在的问题是mousedown画下的线不能显示出来,要用picturebox.refresh()
请问这是为什么?还有picturebox.update有什么区别?谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货