简体   繁体   English

清理BitmapSource的集合

[英]Clean up a collection of BitmapSource

i have a collection of BitmapSource that are created by setting its StreamSource property to a MemoryStream of byte array. 我有一个BitmapSource集合,通过将其StreamSource属性设置为字节数组的MemoryStream来创建。 How do i remove them from memory after using them? 使用后如何从内存中删除它们?

thanks! 谢谢!

只需清除对它们的引用,垃圾收集器就会负责回收内存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM