note 85748 added to function.imagepng

From: Date: Tue, 16 Sep 2008 08:46:00 +0000
Subject: note 85748 added to function.imagepng
Groups: php.notes 
Request: Send a blank email to php-notes+get-144439@lists.php.net to get a copy of this message
If you want to open a png image with alpha blending, you need to do something like this: <?php $file = 'semitransparent.png'; // path to png image $img = imagecreatefrompng($file); // open image imagealphablending($img, true); // setting alpha blending on imagesavealpha($img, true); // save alphablending setting (important) ?> I spent almost a day to find out why alpha blending doesn't work. I hope this is usefull to others too :) ---- Server IP: 69.147.83.197 Probable Submitter: 82.77.156.26 ---- Manual Page -- http://www.php.net/manual/en/function.imagepng.php Edit -- https://master.php.net/note/edit/85748 Del: integrated -- https://master.php.net/note/delete/85748/integrated Del: useless -- https://master.php.net/note/delete/85748/useless Del: bad code -- https://master.php.net/note/delete/85748/bad+code Del: spam -- https://master.php.net/note/delete/85748/spam Del: non-english -- https://master.php.net/note/delete/85748/non-english Del: in docs -- https://master.php.net/note/delete/85748/in+docs Del: other reasons-- https://master.php.net/note/delete/85748 Reject -- https://master.php.net/note/reject/85748 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144439) next »