好的,我有一个wpf图像对象,它显示实时图像。因此,我使用计时器来刷新图像。但是,我尝试将其移动到线程,但没有图像显示。DispatcherPriority.Normal, new ImageUpdater(this.showLiveImage));
showLiveImage正在作为一个线程运行我通过将img_pixel数组保存到bmp文件中进行了测试,并生成了该文件。只是图像没有显示在上。所以我放了一个消息框,<e
此代码在线程中运行。我已经将它委托给UI线程来处理UI。这个问题是因为我的资源造成的吗?BitmapImage logo = new BitmapImage();logo.UriSource = new Uri("pack://application:System.Windows.Threading.DispatcherPriority.Normal,
new Action(delegat