note 7929 added to ImageColorAllocate

From: Date: Sun, 20 Aug 2000 22:48:02 +0000
Subject: note 7929 added to ImageColorAllocate
Groups: php.notes 
Request: Send a blank email to php-notes+get-2801@lists.php.net to get a copy of this message
why not: function unhexize ($color) { $color=hexdec($color); $red=($color&0xFF0000)>>16; $green = ($color&0xFF00)>>8; $blue = ($color&0xFF); return array ($red, $green, $blue); } http://www.php.net/manual/function.imagecolorallocate.php

« previous php.notes (#2801) next »