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 Link to comment https://forums.phpfreaks.com/topic/216037-php-image/ 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'; Link to comment https://forums.phpfreaks.com/topic/216037-php-image/#findComment-1122837 Share on other sites More sharing options...
plznty Posted October 16, 2010 Author Share Posted October 16, 2010 not in an image Link to comment https://forums.phpfreaks.com/topic/216037-php-image/#findComment-1122842 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 Link to comment https://forums.phpfreaks.com/topic/216037-php-image/#findComment-1122843 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 Link to comment https://forums.phpfreaks.com/topic/216037-php-image/#findComment-1122844 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. Link to comment https://forums.phpfreaks.com/topic/216037-php-image/#findComment-1122847 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. Link to comment https://forums.phpfreaks.com/topic/216037-php-image/#findComment-1122849 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.