note 19576 deleted from function.imagecolorallocate by didou

From: Date: Fri, 15 Aug 2003 20:29:18 +0000
Subject: note 19576 deleted from function.imagecolorallocate by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54240@lists.php.net to get a copy of this message
Note Submitter: simon@paarlberg.dk ---- I made a function to write the colorcodes i HEX function mkcolor($image,$color){ $color = eregi_replace("#","",$color); $red = hexdec(substr($color,0,2)); $green = hexdec(substr($color,2,2)); $blue = hexdec(substr($color,4,2)); $out = ImageColorAllocate($image, $red, $green, $blue); return($out); }

« previous php.notes (#54240) next »