Re: Re: Text>Image
| From: | Jason Sheets | Date: | Sat, 08 Mar 2003 23:37:07 +0000 |
| Subject: | Re: Re: Text>Image | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138793@lists.php.net to get a copy of this message | ||
Hi Christopher,
You have to get the width of the font you are using in the image then
multiply that by the length of your string.
There is a gd/image function that returns the width of a font, you can
look at http://www.php.net/manual
Jason
On Sat, 2003-03-08 at 15:30, Christopher Smith wrote:
> I understand how to place the text on the image etc. Just not exactly sure
> how to make the image based on how big the text file I put into an array
>
>
> "Christopher Smith" <jtittle8@comcast.net> wrote in message
> news:20030308134926.18782.qmail@pb1.pair.com...
> > Greetings,
> >
> > I've recently searched newsgroup archives on how to convert text into an
> > image. However, I cannot seem to find a clear example on how to create the
> > image dimensions based on the size of a textfile and then once I create
> the
> > initial image how to paint the text on the image based on how it appears
> in
> > the textfile. Any help with this would be helpful. Thank-you for your
> time!
> >
> >
--
Jason Sheets <jsheets@php.net>