note 69972 added to function.imagettftext

From: Date: Thu, 28 Sep 2006 14:54:29 +0000
Subject: note 69972 added to function.imagettftext
Groups: php.notes 
Request: Send a blank email to php-notes+get-117775@lists.php.net to get a copy of this message
This one caught me out a little bit as confusing, so in an attempt to help others.. "Using the negative of a color index has the effect of turning off antialiasing." Simply put: <?php $textColour = ImageColorAllocate($image, 255, 255, 255); ImageTTFText($image, 8, 0, 0, 0, -$textColour, $font, $text); ?> Note the - (minus) before the $textColor in ImageTTFText, this creates the negative colour index, and switches off AA on text. ---- Server IP: 83.138.144.80 Probable Submitter: 217.150.114.226 ---- Manual Page -- http://www.php.net/manual/en/function.imagettftext.php Edit -- https://master.php.net/note/edit/69972 Del: integrated -- https://master.php.net/note/delete/69972/integrated Del: useless -- https://master.php.net/note/delete/69972/useless Del: bad code -- https://master.php.net/note/delete/69972/bad+code Del: spam -- https://master.php.net/note/delete/69972/spam Del: non-english -- https://master.php.net/note/delete/69972/non-english Del: in docs -- https://master.php.net/note/delete/69972/in+docs Del: other reasons-- https://master.php.net/note/delete/69972 Reject -- https://master.php.net/note/reject/69972 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117775) next »