PNG Transparency gets lost on GTK
Original Reporter info from Mantis: igel457
-
Reporter name:
Original Reporter info from Mantis: igel457
- Reporter name:
Description:
The png transparency gets lost when assigning the loaded image to TBitmap. The same code works on windows, but only the pixels with an alpha channel of 255 remain when using GTK. All other pixels get zero as alpha channel value.
Additional information:
The PNG is loaded via TPicture.LoadFromFile, then assigned to a TBitmap via TBitmap.Assign(TPicture.Graphic) and then loaded into an TLazIntfImage:
pict.LoadFromFile(AFile);
bmp.Assign(pict.Graphic);
SrcIntfImg.LoadFromBitmap(bmp.Handle, bmp.MaskHandle);
Mantis conversion info:
- Mantis ID: 10589
- Version: 0.9.24
- Target version: 1.2