note 61317 added to function.imagefilter

From: Date: Tue, 31 Jan 2006 14:53:07 +0000
Subject: note 61317 added to function.imagefilter
Groups: php.notes 
Request: Send a blank email to php-notes+get-102766@lists.php.net to get a copy of this message
for a quick, ok-looking, sepia-effect (also in php4) I just use this little fellow, since a real implementation of sepia was just way too slow. function pseudosepia(&$im,$percent){ $sx=imagesx($im); $sy=imagesy($im); $filter=imagecreatetruecolor($sx,$sy); $c=imagecolorallocate($filter,100,50,50); imagefilledrectangle($filter,0,0,$sx,$sy,$c); imagecopymerge($im,$filter,0,0,0,0,$sx,$sy,$percent); } ---- Server IP: 217.160.72.57 Probable Submitter: 84.153.247.177 ---- Manual Page -- http://www.php.net/manual/en/function.imagefilter.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61317 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61317&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61317&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61317&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61317&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61317&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61317&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61317&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61317&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102766) next »