I was wondering what, exactly, happens if I call New Bitmap() on a Bitmap object that already exists? To my understanding the existing bitmap is changed but I’m wondering if it somehow ‘overlaps’ the last Bitmap I had?
I have an icon Bitmap, which gets its BitmapData from Item.icon.
icon = new Bitmap(item.icon);
Should the icon need to change, I’ll use:
icon = new Bitmap(item.icon);
When it does.
What I really am wondering is, will this way use up memory? Or will I have to free up memory used by the last Bitmap?