How to empty a TImage #23
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 |