jd2007 Posted July 13, 2007 Share Posted July 13, 2007 How to use imagecreate() function...i need guidance pls... Link to comment https://forums.phpfreaks.com/topic/59808-php-images/ Share on other sites More sharing options...
MadTechie Posted July 13, 2007 Share Posted July 13, 2007 <?php header("Content-type: image/png"); $im = @imagecreate(110, 20) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 0, 0, 0); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng($im); imagedestroy($im); ?> imagecreate Link to comment https://forums.phpfreaks.com/topic/59808-php-images/#findComment-297417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.