cvs: phpdoc-zh /features images.xml

From: Date: Thu, 26 Sep 2002 08:58:10 +0000
Subject: cvs: phpdoc-zh /features images.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-638@lists.php.net to get a copy of this message
dallas Thu Sep 26 04:58:10 2002 EDT Modified files: /phpdoc-zh/features images.xml Log: Update with EN ver. Index: phpdoc-zh/features/images.xml diff -u phpdoc-zh/features/images.xml:1.6 phpdoc-zh/features/images.xml:1.7 --- phpdoc-zh/features/images.xml:1.6 Mon Aug 19 00:28:38 2002 +++ phpdoc-zh/features/images.xml Thu Sep 26 04:58:10 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.6 $ --> <!-- $Author: gregory $ --> -<!-- EN-Revision: 1.17 Maintainer: thomaslio Status: ready --> +<!-- EN-Revision: 1.18 Maintainer: thomaslio Status: ready --> <!-- CREDITS: Gregory --> <chapter id="features.images"> @@ -17,14 +17,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.zh (#638) next »