[問題] 圖片跟著滑鼠位置會頓

作者: oogtoo (只吃棒棒不吃糖)   2018-01-06 01:59:00
如題
最近在寫formapp會遇到使用不同圖檔時
寫跟著滑鼠位置會有頓頓的現象
程式碼都是
private void form1_MouseMove(object sender, MouseEventArgs e)
{
picturebox.Location = new Point(MousePosition.X - 500, 275);
}
有些可以順順的跟著
有些則是滑鼠移動一段距離才跟上
作者: testPtt (測試)   2018-01-06 08:58:00
因為是用cpu去跑directx或是form開啟DoubleBuffer
作者: lightyen (lightyen)   2018-01-06 22:02:00
用wpf或uwp開發程式吧
作者: anumis (阿努米斯)   2018-01-07 18:42:00
不要用picturebox,自已在form paint畫

Links booklink

Contact Us: admin [ a t ] ucptt.com