note 23553 added to function.imagecreate

From: Date: Mon, 22 Jul 2002 15:47:42 +0000
Subject: note 23553 added to function.imagecreate
Groups: php.notes 
Request: Send a blank email to php-notes+get-33378@lists.php.net to get a copy of this message
Code correction and improvement of given sample. <?php header ("Content-type: image/png"); $im = @imagecreate (120, 50) or die ("Cannot Initialize new GD image stream!"); $background_color = imagecolorallocate ($im, 255, 255, 100); $text_color = imagecolorallocate ($im, 233, 14, 91); imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng ($im); ?> -- http://www.php.net/manual/en/function.imagecreate.php http://master.php.net/manage/user-notes.php?action=edit+23553 http://master.php.net/manage/user-notes.php?action=delete+23553 http://master.php.net/manage/user-notes.php?action=reject+23553

« previous php.notes (#33378) next »