Page 1 of 1

Combine with transparency

Posted: Mon Jan 02, 2017 4:38 pm
by fnaudeau
Hi,

Is there a simple way to combine an image, which has some transparencies, with another one ?
Just imagine ImageA.png with some transparent areas.
ImageB.jpg a normal image.
(ImageA + ImageB) will be ImageA and instead of transparency, we see parts of ImageB ( Like a layer in Photoshop ).
It simulates that ImageA is above imageB.
ImageA.png
+
ImageB.png
=
ImageAB.png
Many thanks.

Re: Combine with transparency

Posted: Fri Jan 06, 2017 3:51 pm
by Loïc
Hi,

Just use the DrawGdPictureImage() method.
See: https://www.gdpicture.com/guides/gdpicture/web ... Image.html

Please let me know if you need further info.

With best regards,

Loïc