Page 1 of 1

GD Issue: Can I combine images

Posted: Tue Feb 24, 2004 8:39 pm
by doctorsrp
Is it possible to combine images in order to create one larger image using the GD library?

Many thanks guys

Is it possible

Posted: Wed Feb 25, 2004 4:20 pm
by doctorsrp
Well guys do you think that it is possible to combine images using the GD lib- someone out there must know :)

Cheers y'all

Posted: Wed Feb 25, 2004 5:42 pm
by tsg
I am sure it is possible, but haven't done it before. Check in to this: http://us2.php.net/manual/en/ref.image.php

problem sorted

Posted: Wed Feb 25, 2004 6:28 pm
by doctorsrp
It seems that you can use:

imagecopy
(PHP 3>= 3.0.6, PHP 4 )

imagecopy -- Copy part of an image
Description
int imagecopy ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h)


Copy a part of src_im onto dst_im starting at the x,y coordinates src_x, src_y with a width of src_w and a height of src_h. The portion defined will be copied onto the x,y coordinates, dst_x and dst_y.