Closed eugeneloza closed 6 years ago
FreeFromTrash(AImage)
AutoFree.Delete(AImage);
//AImage.Free
ImageLoad(... AutoFree: boolean = true): TCastleImage;
and free it manually after "load-by-URL" in case of rescaling (pass another variable? - bad idea).
When image is loaded into DImage scaled, the unscaled version of image remains! Should be disposed of and removed from
AutoFree
. I don't think any image would be loaded twice? So source image may be disposed of immediately?