color problem with GD library

From: Date: Thu, 14 Sep 2000 07:14:35 +0000
Subject: color problem with GD library
Groups: php.windows 
Request: Send a blank email to php-windows+get-2641@lists.php.net to get a copy of this message
Hi I don't manage to draw a color line with gd library. I try with PHP ver 3 and the php3_gd.dll library ==> no result : a line is drawn but it's always in BLACK ! (see source below) (With php4.02, it's worth since i can not get any result image on my browser !) Then i have downloaded sources of GD 1.8.3 library, compiled a DLL with VisualC++ ... BUT when i call this library ( dl(php3_gd18.dll)) , i get the following erro message : Warning: Invalid library (maybe not a PHP3 library) 'php3_gd18.dll' in (null) on line 2 I have not more idea left . I need GD to draw statistical graphics . Maybe there could exist another way to draw graphics in PHP ? I would be fine if you could answer to anyone of this questions :-)) Thanks a lot Vincent Here is the (classical !)source i wrote (PHP ver3) to draw an arc with color : the result is the client get the image with BLACK arc ! <?php Header("Content-type: image/gif"); dl("php3_gd.dll"); $image=imagecreatefromgif("im.gif"); // a gif image $couleur_magenta=imagecolorallocate($image,255,0,255); imagearc($image,30,30,20,20,0,360,$couleur_magenta); imagegif($image); ImageDestroy($image); ?>

« previous php.windows (#2641) next »