cvs: phpdoc /en/features images.xml

From: Date: Wed, 25 Sep 2002 11:06:59 +0000
Subject: cvs: phpdoc /en/features images.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969348807@lists.php.net to get a copy of this message
cortesi Wed Sep 25 07:06:59 2002 EDT Modified files: /phpdoc/en/features images.xml Log: make the example more readable and comply with coding standards Index: phpdoc/en/features/images.xml diff -u phpdoc/en/features/images.xml:1.17 phpdoc/en/features/images.xml:1.18 --- phpdoc/en/features/images.xml:1.17 Sun Jul 28 08:27:50 2002 +++ phpdoc/en/features/images.xml Wed Sep 25 07:06:59 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <chapter id="features.images"> <title>Creating and manipulating images</title> @@ -21,14 +21,14 @@ <programlisting role="php"> <![CDATA[ <?php - Header("Content-type: image/png"); - $string=implode($argv," "); - $im = ImageCreateFromPng("images/button1.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); + header("Content-type: image/png"); + $string = implode($argv, " "); + $im = imagecreatefrompng("images/button1.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); ?> ]]> </programlisting>

« previous php.doc (#969348807) next »