处理BitmapImage

时间:2015-10-13 17:30:15

标签: c# .net xaml windows-store-apps win-universal-app

我有一个使用多个BitmapImage的Windows通用应用程序。我曾经Bitmapusing包裹Dispose s(在Winforms中),但我发现BitmapImage没有Dispose。 t SUM(table.column2) as 5thElement 方法。有没有办法在等待GC这样做之前释放他们的资源?

1 个答案:

答案 0 :(得分:0)

这是一个很好的解决方案:Memory consumption of BitmapImage/Image control in Windows Phone 8。它就像是Dispose

的扩展“BitmapImage”方法

是的,GC.Collect()是好方法..