Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-05

TFPImageCanvas alphablend

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi, I loaded a PNG with alpha channel (transparent background) into a TFPMemoryImage, then created a TFPImageCanvas, filled its background with red color, then used TFPImageCanvas.Draw method to draw the original image on top of red background.

The image was drawn on canvas but its backgrodund is black.

Does anyone know a way to create a TFPMemoryImage created by composing one or more PNGs without losing the alpha channel?. I know this can be done with TBgraBitmap or AggPass, but I cannot use then right now.

Regards,

Reply by email