Something rong with ImageColorAllocate
Posted: Wed Aug 20, 2003 4:19 pm
Hi, I am trying to have a variable passed from a webpage to control the RBG color of text, when i try controling it with a variable tells me Wrong parameter count for imagecolorallocate,
when I try putting it the value for the color, it works fine.
Can anyone tell me what I am doing rong?
when I try putting it the value for the color, it works fine.
Code: Select all
Header("Content-type: image/jpeg");
$image = imagecreatefromjpeg("image.jpg");
$RGB_color = "220,220,220";
$blue = ImageColorAllocate($image , $RGB_color);
ImageString($image,5,5,110,'Devnetwork',$blue);
ImageJPEG($image);