2011-08-01 50 views

回答

1

$imtop$imbottom是我們的圖像

//imagesx($imtop)==imagesx($imbottom) 
$new=imagecreatetruecolor(imagesx($imtop),imagesy($imtop)+imagesy($imbottom)); 
imagecopy($new,$imtop,0,0,0,0,imagesx($imtop),imagesy($imtop)); 
imagecopy($new,$imbottom,0,imagesy($imtop),0,0,imagesx($imbottom),imagesy($imbottom)); 
//use $new