note 68299 added to function.imagecreatetruecolor

From: Date: Fri, 21 Jul 2006 09:52:08 +0000
Subject: note 68299 added to function.imagecreatetruecolor
Groups: php.notes 
Request: Send a blank email to php-notes+get-115000@lists.php.net to get a copy of this message
A very simple and efficient way to create RGB color from hexadecimal (HTML) notation: <?php function color_hex2dec ($color) { return array (hexdec (substr ($color, 0, 2)), hexdec (substr ($color, 2, 2)), hexdec (substr ($color, 4, 2))); } list ($r, $g, $b) = color_hex2dec ('FFEECC'); ?> ---- Server IP: 193.226.19.70 Probable Submitter: 86.124.138.208 ---- 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.imagecreatetruecolor.php Edit -- http://master.php.net/note/edit/68299 Del: integrated -- http://master.php.net/note/delete/68299/integrated Del: useless -- http://master.php.net/note/delete/68299/useless Del: bad code -- http://master.php.net/note/delete/68299/bad+code Del: spam -- http://master.php.net/note/delete/68299/spam Del: non-english -- http://master.php.net/note/delete/68299/non-english Del: in docs -- http://master.php.net/note/delete/68299/in+docs Del: other reasons-- http://master.php.net/note/delete/68299 Reject -- http://master.php.net/note/reject/68299 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#115000) next »