Re: [PHP] Re: imagettftext color problem

2005-02-11 Thread hitek
You are using imagecreate() with png, which creates an indexed color image. > $img=imagecreate($width, $height); Use Imagecreatetruecolor() instead. > > From: Anni Hienola <[EMAIL PROTECTED]> > Date: 2005/02/11 Fri AM 02:27:03 EST > To: php-general@lists.php.net > Subject: [PHP] Re: imagettftex

Re: [PHP] Re: imagettftext color problem

2005-02-11 Thread Richard Lynch
Anni Hienola wrote: > > And to correct one mistake in the code that was kindly pointed out but is > here just a typo: > >> $bg=imagecolorallocate($img, 255, 255, 255); >> $font_color=imageallocatecolor($img, 0, 0, 0); > > Should be: > $bg=imagecolorallocate($img, 255, 255, 255); > $font_color=i