01-13-2023, 01:45 PM
I recently saw some code that did this:
ImageWidth = _WIDTH(_LOADIMAGE("Image.png", 32))
Will this leave the image's contents in RAM with no way of freeing it?
-or-
Will the image be discarded since the handle was not assigned to a variable?
It's a neat trick and one that I could happen to use on a current project but not if the image is orphaned in RAM.
ImageWidth = _WIDTH(_LOADIMAGE("Image.png", 32))
Will this leave the image's contents in RAM with no way of freeing it?
-or-
Will the image be discarded since the handle was not assigned to a variable?
It's a neat trick and one that I could happen to use on a current project but not if the image is orphaned in RAM.