Re: imagestring to picture

From: Date: Tue, 23 Aug 2005 07:55:34 +0000
Subject: Re: imagestring to picture
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221149@lists.php.net to get a copy of this message
On Mon, August 22, 2005 12:45 am, Andras Kende wrote: > I have a some colorful pictures, Would like to add white text with > black > background around the white text... > > I can add the text fine but could figure out how to add black > background.. > > > $textcolor = imagecolorallocate($destimg, 255, 255, 255); $black = imagecolorallocate($destimg, 0, 0, 0); imagefilledrectangle($destimg, 8, 8, 8 + 5 * strlen("test text"), 13, $black); > imagestring($destimg, 3, 10, 10, "test text", $textcolor); > imagejpeg($destimg); -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#221149) next »