note 41252 added to function.imagecolorallocate
| From: | tim at phantomrpg dot com | Date: | Sun, 04 Apr 2004 07:38:39 +0000 |
| Subject: | note 41252 added to function.imagecolorallocate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67610@lists.php.net to get a copy of this message | ||
Here is a simpler way of using a hex color with ImageColorAllocate().
sscanf("FFFF00", "%2x%2x%2x", $red, $green, $blue);
$stringColor=ImageColorAllocate($image,$red,$green,$blue);
Hope it helps someone.
----
Manual Page -- http://www.php.net/manual/en/function.imagecolorallocate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41252
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41252&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41252&report=yes
Search -- http://master.php.net/manage/user-notes.php