imagecopy or why men don't use maps.

From: Date: Sun, 03 Feb 2002 03:19:43 +0000
Subject: imagecopy or why men don't use maps.
Groups: php.general 
Request: Send a blank email to php-general+get-83283@lists.php.net to get a copy of this message
Help! I have an image file which is a map of the local area. I want to put symbols on the map at various points, but I first need to get the php image function to work. My site has imaging enabled and I can create graphs from scratch, but this has stumped me so far. Any help will be greatly appreciated. Hugh code? below: $image=imagecreate(400,400); // created image // source image info $source="map1.jpg"; $imageinfo = getimagesize($source); $source_00=0; // origin (0,0) $source_width=$imageinfo[0]; $source_height-$imageinfo[1]; $image_00=0; // origin (0,0) imagecopy($image,$source, $image_00, $image_00, $source_00, $source_00, $source_width, $source_height); / / this is line 36. Warning: Supplied argument is not a valid Image resource in /www/site.com/somepage.php on line 36

« previous php.general (#83283) next »