note 7929 deleted from function.imagecolorallocate by jimw

From: Date: Sat, 08 Dec 2001 19:51:19 +0000
Subject: note 7929 deleted from function.imagecolorallocate by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22133@lists.php.net to get a copy of this message
Cool function to convert from html hex codes (no #; if you have a #, you can remove it before it gets to the function) to binary color codes: function unhexize ($color) { $color=hexdec($color); $red=($color&0xFF0000)>>16; $green = ($color&0xFF00)>>8; $blue = ($color&0xFF); return array ($red, $green, $blue); }

« previous php.notes (#22133) next »