Reply to Re: [PHP] imagestring to picture

Your name:

Reply:


Posted by "Richard Lynch" on 08/23/05 10:55

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация