Re: note 90708 deleted from function.imagettfbbox by thiago

From: Date: Tue, 05 May 2009 16:53:13 +0000
Subject: Re: note 90708 deleted from function.imagettfbbox by thiago
References: 1 2 3 4  Groups: php.notes 
Request: Send a blank email to php-notes+get-154253@lists.php.net to get a copy of this message
It's okay. It forced me to take another look at it from an objective point-of-view, and I think you were correct in deleting it. So go ahead and nix it again. On Tue, May 5, 2009 at 12:49, Thiago Pojda <thiago@php.net> wrote: > I didn't see it, as said in my other email. > > Sorry about that. > > Thiago Henrique Pojda > http://nerdnaweb.blogspot.com > > > On Tue, May 5, 2009 at 1:46 PM, Daniel Brown <parasane@gmail.com> wrote: >> >>    Thiago, I just re-added this.... >> >> >> On Tue, May 5, 2009 at 12:49,  <thiago@php.net> wrote: >> > Note Submitter: hello at haroonahmad dot co dot uk >> > >> > ---- >> > >> > for writing text / string in centre of image, horizontally and >> > vertically, you can do the following, >> > <?php >> > //** www.haroonahmad.co.uk >> > // Advanced CAPTCHA script >> > >> > $tab = imagettfbbox( >> > $this->fontSize, >> > $this->fontAngle, >> > $this->ttfPath.$this->fontFace, >> > $this->turingCode >> > ); >> > //print_r($tab); >> > >> > $x = ceil(($this->width - $tab[2]) / 2); >> > $y = ceil(($this->height - $tab[5]) / 2); >> > ?> >> > and then use it with functions like imagettftext() to write the text. >> > >> > -- >> > PHP Notes Mailing List (http://www.php.net/) >> > To unsubscribe, visit: http://www.php.net/unsub.php >> > >> > >> >> >> >> -- >> </Daniel P. Brown> >> daniel.brown@parasane.net || danbrown@php.net >> http://www.parasane.net/ || >> http://www.pilotpig.net/ >> 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000 >> >> -- >> PHP Notes Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

« previous php.notes (#154253) next »