note 69344 added to function.imagealphablending

From: Date: Fri, 01 Sep 2006 12:45:22 +0000
Subject: note 69344 added to function.imagealphablending
Groups: php.notes 
Request: Send a blank email to php-notes+get-116583@lists.php.net to get a copy of this message
In the previous message, I found it is working perfect. But, it can be done a lot easily, as is described by the first message by "barnabas at kendall dot NOSPAM dot net". Though, it don't work totally, instead of using imageAlphaBlending, you have to use imageSaveAlpha So, I found the corrected and smalled code would be <?php $im_a = @imagecreatefrompng("a.png"); $im_c = @imagecreatefrompng("c.png"); imageSaveAlpha($im_c, true); imagecopy($im_c,$im_a,0,0,0,0,200,200); header("Content-type: image/png"); imagepng($im_c); ?> ---- Server IP: 66.163.161.117 Probable Submitter: 203.189.231.13 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.imagealphablending.php Edit -- https://master.php.net/note/edit/69344 Del: integrated -- https://master.php.net/note/delete/69344/integrated Del: useless -- https://master.php.net/note/delete/69344/useless Del: bad code -- https://master.php.net/note/delete/69344/bad+code Del: spam -- https://master.php.net/note/delete/69344/spam Del: non-english -- https://master.php.net/note/delete/69344/non-english Del: in docs -- https://master.php.net/note/delete/69344/in+docs Del: other reasons-- https://master.php.net/note/delete/69344 Reject -- https://master.php.net/note/reject/69344 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116583) next »