Hi Fabrizio,
The ExternalBitmap demo sets the SetExternalBitmap back to nil when the form is closed, but how can I set ImageEnVect1 back to the original state, so that I can load a new image independently?
It seems like I need to call Clear and ResetState additionally.
Is this the correct way?
Example:
ImageEnVect1.SetExternalBitmap(ImageEnVect2.IEBitmap);
ImageEnVect1.IO.loadfromfile('pic1.jpg');
ImageEnVect2.Update;
ShowMessage('Press to detach');
ImageEnVect1.SetExternalBitmap(nil);
ImageEnVect1.ResetState;
ImageEnVect1.Clear;
ImageEnVect1.IO.loadfromfile('pic2.jpg');