Page 1 of 1

Adding Smaller Images to a Larger Image

Posted: Fri Oct 01, 2004 6:35 am
by thomas777neo
Hi All

I have created a script that simply take an existing image

Code: Select all

$im = imagecreatefromjpeg("superdupermappyland.jpg");
and draws rectangles on the image according to x,y's via

Code: Select all

imagefilledrectangle($im,$x-2,$y-2,$x+2,$y+2,$red);
.

What I need to to is, instead of drawing little rectangles I need to draw another image on the existing image (i.e icon.jpg).

If anyone could please assist, It would be greatly appreciated.

ImageCopyMerge

Posted: Fri Oct 01, 2004 6:39 am
by phpScott
try looking at [php_man]ImageCopyMerge[/php_man] for what you are looking for.

Resolved

Posted: Fri Oct 01, 2004 7:08 am
by thomas777neo
Thanks, that was pretty easy...
:D

no problem

Posted: Fri Oct 01, 2004 7:35 am
by phpScott
I have done a couple of sites now that needed graphical manipulation.
Not bad for a guy that needs a pencil, ruler and a big earaser to draw a stick man. :lol: