note 93353 added to function.imagestring

From: Date: Fri, 04 Sep 2009 23:52:28 +0000
Subject: note 93353 added to function.imagestring
Groups: php.notes 
Request: Send a blank email to php-notes+get-160229@lists.php.net to get a copy of this message
Here is a small bit I made for writing to a image from right to left when you are limited to imagestring() <?php $pageview_letters = preg_split('//', $string, -1 ); // Form are original array of letters. $minus = 6; // The letter spacing in pixels $first = true; // Whether or not we have started the string $x = 375; // X Location of imagestring $y = 23; // Y Location of imagestring $letters = array(); // Initiate the array o letters. foreach ( $pageview_letters as $letter ) { $letters[] = $letter; } $letters = array_reverse( $letters ); foreach ( $letters as $letter ) { if ( $first ) { imagestring( $image, 2, $x, $y, $letter, $light_blue ); $first = false; } else { $x = ( $x - $minus ); imagestring( $image, 2, $x, $y, $letter, $light_blue ); } } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 71.231.34.67 ---- Manual Page -- http://www.php.net/manual/en/function.imagestring.php Edit -- https://master.php.net/note/edit/93353 Del: integrated -- https://master.php.net/note/delete/93353/integrated Del: useless -- https://master.php.net/note/delete/93353/useless Del: bad code -- https://master.php.net/note/delete/93353/bad+code Del: spam -- https://master.php.net/note/delete/93353/spam Del: non-english -- https://master.php.net/note/delete/93353/non-english Del: in docs -- https://master.php.net/note/delete/93353/in+docs Del: other reasons-- https://master.php.net/note/delete/93353 Reject -- https://master.php.net/note/reject/93353 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160229) next »