移動滑鼠試試看
使用WriteableBitmap重構:
核心代碼:
WriteableBitmap wb; wb = new WriteableBitmap(Convert.ToInt32(App.Current.Host.Content.ActualWidth), Convert.ToInt32(App.Current.Host.Content.ActualHeight)); imgOut.Source = wb; wb.Invalidate(); wb.Render(content, null);
繼續改進: