Can I programmatically delete the image file source? Or is it better to just set the source to a new bitmap that is undefined?
I am currently doing this:
BitmapImage bmpClear = new BitmapImage();
CanvasImg.Source = bmpClear;
I never installed the source of bmpClear, so the previous image that was set by CanvasImg is deleted without replacement. Is this a good solution or will it lead to unintended consequences?
source
share