You're welcome
Hi KodeZwerg!
Indeed, what happens here is that the raster data of the bitmap is shared when assigning it.
In the end, it seems you've written something a bit similar to MakeBitmapCopy, except maybe with transparent background. It is probably not portable to other systems, but if that works for you that's all good.
Yeah, I didnt knew it better to help myself.
Maby you having a solution for me by calling the MakeBitmapCopy() method correct?
bmp.PixelFormat := graphic.Bitmap.PixelFormat;
bmp.Transparent := graphic.HasTransparentPixels;
This is how I currently do with my old way of doing but I having no idea about the arguments to put into MakeBitmapCopy() so it would work with whatever the transparency might be to work for all cases, like Icons or PNG's etc....
I am not that deep into graphics to find out on my own.
I've cloned current repo of your wonderful package but did not found any example usage for MakeBitmapCopy().
I guess in the end I just could "TImage.Picture.Bitmap := TBGRABitmap.MakeBitmapCopy(missing arguments...);"