RE: [PHP] imageCopy :-(

From: Date: Sat, 10 Nov 2001 15:58:40 +0000
Subject: RE: [PHP] imageCopy :-(
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74105@lists.php.net to get a copy of this message
Hello! You should open "test.bmp" first. Best regards, Andrew Kirilenko. > -----Original Message----- > From: jtjohnston [mailto:jtjohnston@courrier.usherb.ca] > Sent: Saturday, November 10, 2001 1:15 PM > To: php-general@lists.php.net > Subject: [PHP] imageCopy :-( > > > Not that I'm sleep deprived ... :o) > > Simple, I create an image, add a bunch of text and what not. > Now I want to add a graphic. (Probably a couple, who knows?) > > imageCopy("test.bmp",$image,10,10,10,10,350,500,50); <== doesn't > work. > > Is this even the right function?? > > Description: > int ImageCopyMerge (resource dst_im, resource, src_im, > int dst_x, = 10 > int dst_y, = 10 > int src_x, = 10 > int src_y, = 10 > int src_w, = 350 > int src_h, = 500 > int pct = 50 > ) > > So what am I doing wrong? > > --------snip----------- > header("Content-type: image/png"); > > $height = 350; > $width = 500; > $image = imagecreate($width, $height+350); > > $white = imagecolorallocate($image, 255, 255, 255); > $red = imagecolorallocate($image, 255, 0, 0); > $green = ImageColorAllocate($image, 0, 255, 0); > $blue = ImageColorAllocate($image, 0, 0, 255); > $black = imagecolorallocate($image, 0, 0, 0); > > ImageString($image,5,30, 30 +350, "hello",$blue); > > imageCopy("test.bmp",$image,10,10,10,10,350,500,50); > > imagepng($image); > imagedestroy($image); > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#74105) next »