plznty Posted October 16, 2010 Share Posted October 16, 2010 <?php header("Content-type: image/png"); $string = $_GET['text']; $im = imagecreatefrompng("help.png"); $orange = imagecolorallocate($im, 220, 210, 60); $px = (imagesx($im) - 7.5 * strlen($string)) / 2; imagestring($im, 3, $px, 9, $string, $orange); imagepng($im); imagedestroy($im); ?> How could I get another text below the current text. like a line under Quote Link to comment Share on other sites More sharing options...
chriscloyd Posted October 16, 2010 Share Posted October 16, 2010 you could do $string .= '<br /> Heres the other text'; Quote Link to comment Share on other sites More sharing options...
plznty Posted October 16, 2010 Author Share Posted October 16, 2010 not in an image Quote Link to comment Share on other sites More sharing options...
chriscloyd Posted October 16, 2010 Share Posted October 16, 2010 Yes you can i just did it haha Quote Link to comment Share on other sites More sharing options...
chriscloyd Posted October 16, 2010 Share Posted October 16, 2010 well you cant do the BR but you can add other lines Quote Link to comment Share on other sites More sharing options...
plznty Posted October 16, 2010 Author Share Posted October 16, 2010 yes, thats what im asking help with. to have a new line. Quote Link to comment Share on other sites More sharing options...
plznty Posted October 16, 2010 Author Share Posted October 16, 2010 realised how to do it. Ill be less lazy in future. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.