note 92039 added to function.imagecopy

From: Date: Mon, 06 Jul 2009 19:20:19 +0000
Subject: note 92039 added to function.imagecopy
Groups: php.notes 
Request: Send a blank email to php-notes+get-157978@lists.php.net to get a copy of this message
Regarding the image_flip function discussed in the notes here, don't forget to support transparency. AFTER: $imgdest = imagecreatetruecolor($width, $height); ADD: imagealphablending($imgdest, false); imagesavealpha($imgdest, true); In another post here it mentioned you didn't have to use the imagesavealpha function, but I found without it the background transparency can turn the background canvas black. ---- Server IP: 66.207.199.35 Probable Submitter: 66.225.139.49 ---- Manual Page -- http://www.php.net/manual/en/function.imagecopy.php Edit -- https://master.php.net/note/edit/92039 Del: integrated -- https://master.php.net/note/delete/92039/integrated Del: useless -- https://master.php.net/note/delete/92039/useless Del: bad code -- https://master.php.net/note/delete/92039/bad+code Del: spam -- https://master.php.net/note/delete/92039/spam Del: non-english -- https://master.php.net/note/delete/92039/non-english Del: in docs -- https://master.php.net/note/delete/92039/in+docs Del: other reasons-- https://master.php.net/note/delete/92039 Reject -- https://master.php.net/note/reject/92039 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157978) next »