PDA

View Full Version : PHP GD: Images on images



Romanity
22-02-2007, 10:33 PM
Oki, so i got my basic thingy, the stand with the habboname and mission on it, but now i need to know how to put an image on top.

I have the coding and the image, but need the function to put it on...

anyone know?

ZAG
22-02-2007, 10:53 PM
You would use the imagecopy function.

http://us3.php.net/imagecopy

nets
23-02-2007, 12:49 PM
$i1 = imagecreatefromgif('i1.gif');
$i2 = imagecreatefromgif('i2.gif');
$x = 50;
$y = 50;
imagecopymerge($i1, $i2, $x, $y, 0, 0, imagesx($i2), imagesy($i2), 100);

Want to hide these adverts? Register an account for free!