imagecopy in PHP - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: imagecopy in PHP (/showthread.php?tid=30971) imagecopy in PHP by Moo on 09-04-2004 at 02:03 PM
I'm a PHP and I'd like to know how to use imagecopy (http://is2.php.net/manual/en/function.imagecopy.php). Can you guys help me? RE: imagecopy in PHP by Choli on 09-04-2004 at 02:18 PM
quote: imagecopy copies a block (or region, or rectangle) of an image into another one. It takes 8 parameters: The two first ones are the destination and source images, respectively. The last four parameters represent the part of the original image that will be copied. They are the coordinates of the upper left pixel of the rectangle (src_x and src_y) and the width and heigh of the rectangle (src_w and src_h). The other 2 parameters are dst_x and dst_y, and they represent where the rectangle is going to be placed in in the destination image. They're also the upper left pixel. If you don't understand that, just ask; but in that case I'd suggest you to begin with easier things in PHP RE: imagecopy in PHP by Moo on 09-04-2004 at 02:30 PM I dont understand (i was just looking for a way to kinda merge 2 images together one of 'em is an image from a script and the other is a normal image) RE: imagecopy in PHP by fluffy_lobster on 09-04-2004 at 06:13 PM
ok, i'll go through the arguments for you in order. each bullet is an argument (one of the parameters separated by commas):
at the end of it, the image linked to by the resource in the first argument will be updated with the copy of image 2 as you specified RE: imagecopy in PHP by Moo on 09-04-2004 at 06:15 PM i dont know where to put those arguments (should've said that earlier...) RE: imagecopy in PHP by fluffy_lobster on 09-04-2004 at 06:17 PM
inside the brackets. RE: imagecopy in PHP by Moo on 09-04-2004 at 06:19 PM this isnt really for me... too complicated |