Notice Of Closure

Please note that this website is due to close down on 15th June 2020.

In the interim I will try to move as much content as possible over to my GitHub account. Thanks to everyone who has supported the site over the years.

» Help

How to empty a TImage


The first thing that comes to your mind is probably TImage.Picture.Free but I wouldn't recommend this :-) Not only will this actually empty the image but also free the memory associated with it. Uhm... What does this mean? That you will no longer be able to access the TImage.Picture object. It will no longer exist, it'll be gone (*puff*). The solution is more than simple:

Image1.Picture := nil;
Author: Unknown
Added: 2007-06-02
Last updated: 2007-06-02

« Return to contents »