Re: GD question
| From: | DvDmanDT | Date: | Mon, 17 Nov 2003 12:09:00 +0000 |
| Subject: | Re: GD question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169921@lists.php.net to get a copy of this message | ||
$im=imagecreatetruecolor(9,9);
$im2=imagecreatefrompng('tile.png');
imagecopy($im,$im2,0,0,0,0,3,3);
imagecopy($im,$im2,3,0,0,0,3,3);
imagecopy($im,$im2,6,0,0,0,3,3);
imagecopy($im,$im2,0,3,0,0,3,3);
imagecopy($im,$im2,6,3,0,0,3,3);
imagecopy($im,$im2,0,6,0,0,3,3);
imagecopy($im,$im2,3,6,0,0,3,3);
imagecopy($im,$im2,6,6,0,0,3,3);
imagepng($im);
imagedestroy($im);imagedestroy($im2);
or something like that.. :s
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html
##########################
"René fournier" <m5@renefournier.com> skrev i meddelandet
news:8E61A3E5-18B0-11D8-802E-0003931DAC94@renefournier.com...
I want to write a function the creates a new image composited from a
3x3 tile. The idea is that the center tile will be a photo, and the
surrounding eight images will constitute a border and shadow to the
composited image. So... The eight "border/shadow" images will always be
the same, but the center image will be unique.
Anyways, I've been playing with GD functions for a little while, and
would appreciate any suggestions on how to accomplish this. I haven't
been able to find a good tutorial on this kind of thing
specificallycompositing tiles of images into a single image.
Any ideas?
...Rene=