... //theBMP is already assigned and displayed on the 1st image (Style_01) ... //load 2nd image TheImage1:= TBGRABitmap.Create(Style_02.Picture.Bitmap); theBMP.Free; theBMP.PutImage(0, 0, TheImage1, dmDrawWithTransparency );
Hi!
A lot of your question is answered in the BGRA tutorial:
https://wiki.freepascal.org/BGRABitmap_tutorial (https://wiki.freepascal.org/BGRABitmap_tutorial)
Have a nice day
Winni
No worries you can ask questions here.
If you want to select an image and you are not going to change it, you could simply copy the address of the object:
theBMP := TheImage1;
But if you free TheImage1, you need to think about making sure theBMP will not be used anymore. The simpler would be to set theBMP to nil if it was set to TheImage1, and when using theBMP, to check if it is not nil.