Hi!
I deleted the TBitmap part from the code to enshure that only PNGs are loaded.
The behaviour differs between gtk2 and Win7 - just tested.
* In all cases the transparent pixels are 0/0/0/0 - good.
* In all cases a BGRAbitmap.draw(Image.canvas,0,0) converts the transparent pixels to black
* BGRAbitmap.draw(Image.canvas,0,0, false): In Windows the pixels appear in the background color, while gtk2 shows nothing.
* Image.canvas.CopyRect: In gtk2 the desired result is shown while Windows behaves like BGRAbitmap.draw(Image.canvas,0,0, false): The opaque pixel are shown in the backpmground color.
All results except copyrect and gtk2 are not satisfying.
Winni