$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/[EMAIL PROTECTED] ########################## "René fournier" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] 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 specifically—compositing tiles of images into a single image. Any ideas? ...Rene= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php