note 99276 added to function.imagecolorallocate

From: Date: Sun, 08 Aug 2010 06:57:33 +0000
Subject: note 99276 added to function.imagecolorallocate
Groups: php.notes 
Request: Send a blank email to php-notes+get-171457@lists.php.net to get a copy of this message
If you're uncomfortable with using RGB codes you can bypass this function completely by assigning the hex values directly, two example replacements are: <?php //Equivalents $white = imagecolorallocate($im, 255, 255, 255); $white = 0x00FFFFFF; //First two are alpha, then triplet $grey = imagecolorallocate($im, 62, 62, 62); $grey = 0x003E3E3E; ?> This should work in all applications, as it seems that is all the function returns. ---- Server IP: 72.55.140.6 Probable Submitter: 174.1.235.8 ---- Manual Page -- http://www.php.net/manual/en/function.imagecolorallocate.php Edit -- https://master.php.net/note/edit/99276 Del: integrated -- https://master.php.net/note/delete/99276/integrated Del: useless -- https://master.php.net/note/delete/99276/useless Del: bad code -- https://master.php.net/note/delete/99276/bad+code Del: spam -- https://master.php.net/note/delete/99276/spam Del: non-english -- https://master.php.net/note/delete/99276/non-english Del: in docs -- https://master.php.net/note/delete/99276/in+docs Del: other reasons-- https://master.php.net/note/delete/99276 Reject -- https://master.php.net/note/reject/99276 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171457) next »