note 64531 added to function.imagerotate

From: Date: Tue, 18 Apr 2006 02:00:17 +0000
Subject: note 64531 added to function.imagerotate
Groups: php.notes 
Request: Send a blank email to php-notes+get-108364@lists.php.net to get a copy of this message
If you pass "-1" into the last param of imagecreatefrompng, it preserves PNG transparently properly! Exampe: $filename = './documents/135.pdf.png'; $degrees = 40; header('Content-type: image/png'); $source = imagecreatefrompng($filename); $rotate = imagerotate($source, $degrees, -1); imagealphablending($rotate, true); imagesavealpha($rotate, true); imagepng($rotate); ---- Server IP: 216.194.113.175 Probable Submitter: 67.168.160.119 ---- 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.imagerotate.php Edit -- http://master.php.net/note/edit/64531 Del: integrated -- http://master.php.net/note/delete/64531/integrated Del: useless -- http://master.php.net/note/delete/64531/useless Del: bad code -- http://master.php.net/note/delete/64531/bad+code Del: spam -- http://master.php.net/note/delete/64531/spam Del: non-english -- http://master.php.net/note/delete/64531/non-english Del: in docs -- http://master.php.net/note/delete/64531/in+docs Del: other reasons-- http://master.php.net/note/delete/64531 Reject -- http://master.php.net/note/reject/64531 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108364) next »