Lazarus

Programming => Graphics and Multimedia => Graphics => Topic started by: querecuto on May 03, 2021, 03:50:11 am

Title: Make a transparent PNG from several images
Post by: querecuto on May 03, 2021, 03:50:11 am
I am trying to create an image generator and I don't know how to "merge" the images into one and save it in a transparent png.

Could someone please guide me?

I need to get the images of 4 "TImage" called: Card, Texture, Ribbon, Picture.
In addition to the 2 texts (TLabel)


I tried creating a "canvas" but I did not know how or I think it is to draw geometric figures.
Title: Re: Make a transparent PNG from several images
Post by: circular on May 03, 2021, 06:35:42 pm
It depends if you have half-transparent pixels or if pixels are either opaque or transparent.

If you don't have half-transparent pixels, then you can use a background color like clFuschia and define it as the transparent color.
Title: Re: Make a transparent PNG from several images
Post by: lucamar on May 03, 2021, 07:36:36 pm
This topic is the intl. version of this one in the Spanish (https://forum.lazarus.freepascal.org/index.php/topic,54438.0.html) sub-board. A couple of answers there already ;)
TinyPortal © 2005-2018