First, I load a BitmapImage on the Image control on the Window. Second, I work with the Image control and then close the
BitmapImage
Image
Window
You can set the object to null, so that the BitmapImage object is no longer referenced. In this situation, the GC should take care of freeing up resources. You can call GC.Collect but it can affect performance if used too often.
null
GC.Collect