Forum Moderators: coopster

Message Too Old, No Replies

Importing an image into gd

         

bleak26

3:41 pm on Feb 14, 2006 (gmt 0)

10+ Year Member



I know that it is possible to use an image as a background for a file.

$im = ImageCreateFromPNG ($color.'-button.png');

But is it possible to import an image and place it on top of another as I already have the background I want. Once again, thanks guys.

whoisgregg

6:13 pm on Feb 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Make a second image, then use imagecopymerge [php.net] to place one on the other.

I've done image creation projects where I have dozens of images that are generated than layered together... just make sure your scripts always imagedestroy [php.net] all generated images.