I have a TDBImage control. I want to clear/erase/empty through a TButton's click event. i.e., what's displayed on the screen, as opposed to what's in the underlying database which I could accomplish by setting to empty_blob().
It seems the actual image is stored in the Picture property (TPicture) but searching out TPicture has not helped either.
procedure TMyForm.clearPictureButtonClick(Sender: TObject);
begin
photo.Picture.[WHAT GOES HERE????];
// or
// photo.Picture := [WHAT GOES HERE????];
end;
I logical candidates would be something called: clear
, erase
, blank
, empty
, etc.
Free
, Destroy
and DisposeOf
clearly deal with releasing the memory for the control back to the OS.
How can I do this?