note 35503 rejected from function.imagecopyresized by didou

From: Date: Fri, 03 Oct 2003 11:38:36 +0000
Subject: note 35503 rejected from function.imagecopyresized by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57711@lists.php.net to get a copy of this message
Note Submitter: pascall@apinc.org ---- hi, i'm trying to use the function imagecopyresampled with a png file with transparent background : <? $src_img=imagecreatefrompng("mypic.png"); $dst_img=imageCreateTrueColor($new_w,$new_h); imagecopyresampled($dst_img,$src_img,0,0,0,0 ,$new_w,$new_h,$old_w,$old_h); imagepng($dst_img,"newpic.png"); ?> and in the result, instead of having transparent background, i have a black background. i've tried to use the function imagecolortransparent() to clear the black part, but the result is not really good... if someone has some ideas to correct my problem.. thanks. pascal

« previous php.notes (#57711) next »