note 9250 added to ImageColorAllocate
| From: | joe at dtheatre dot com | Date: | Tue, 24 Oct 2000 19:34:07 +0000 |
| Subject: | note 9250 added to ImageColorAllocate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6917@lists.php.net to get a copy of this message | ||
Another option for html style colors:
function hex2dec ($color) {
$r = hexdec(substr($color, 0, 2));
$g = hexdec(substr($color, 2, 2));
$b = hexdec(substr($color, 4, 2));
return array ($r, $g, $b);
}
http://www.php.net/manual/function.imagecolorallocate.php