cvs: phpdoc-zh /features images.xml

From: Date: Sat, 20 Jul 2002 23:17:04 +0000
Subject: cvs: phpdoc-zh /features images.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-171@lists.php.net to get a copy of this message
thomaslio Sat Jul 20 19:17:04 2002 EDT Modified files: /phpdoc-zh/features images.xml Log: spoken problem fixed Index: phpdoc-zh/features/images.xml diff -u phpdoc-zh/features/images.xml:1.2 phpdoc-zh/features/images.xml:1.3 --- phpdoc-zh/features/images.xml:1.2 Tue Jul 16 11:25:40 2002 +++ phpdoc-zh/features/images.xml Sat Jul 20 19:17:04 2002 @@ -1,56 +1,56 @@ -<?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.10 $ --> - <chapter id="features.images"> - <title>½¨Á¢ºÍ´¦ÀíͼÏó</title> - - <simpara> - PHP ûÏÞÖÆ´´ÔìÐÔµÄHTMLÊä³ö. Õâ¿ÉÒÔ½¨Á¢ºÍ²Ù×÷¸÷ÖÖÀàÐ͵ÄͼÏó¸ñʽ, °üÀ¨ gif, png, jpg, wbmp, ºÍ xpm. ÉõÖÁ¸ü¶à, PHP¿ÉÒÔÖ±½ÓÉú³ÉͼÏóÏÔʾµ½ä¯ÀÀÆ÷¡£ Äã±ØÐë±àÒëPHPµÄGD¿â²ÅÄÜʹÓá£GD ºÍ PHP»òÐíÐèÒªÆäËû¿âÀ´Ö§³ÖÄãËùÐèÒªµÄͼÏó¸ñʽ. GD 1.6ºóÍ£Ö¹Ö§³ÖGIF¸ñʽ - </simpara> - - <para> - <example> - <title>ÓÃPHP½¨Á¢PNG</title> - <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); -?> -]]> - </programlisting> - </example> - - Õâ¸öÀý×Ó¿ÉÒÔͨ¹ýÀàËÆ±êÇ©µÄÒ³ÃæÀ´ÊµÏÖ: &lt;img - src=&quot;button.php?text&quot;&gt; ÉÏÃæµÄ button.php ½Å±¾ - ¿ÉÒÔʵÏÖ&quot;text&quot; ×Ö·û´®µþ¼ÓÔÚͼÏóÉÏ &quot;images/button1.png&quot; - ²¢ÇÒÊä³öͼÏó. ÕâÊÇÒ»¸ö·Ç³£±ãÀûµÄ·½·¨£¬¿ÉÒÔ±ÜÃ⻭ͬÑùµÄ°´Å¥£¬²»ÐèҪÿ´Î¶¼Òª¸Ä±ä°´Å¥µÄÎÄ×Ö£¬ÓôËÖÖ·½·¨¿ÉÒÔ¶¯Ì¬µÄÉú³É¡£ - </para> - - </chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.10 $ --> +<!-- $AUTHOR$ --> +<!-- EN-Revision: 1.16 Maintainer: thomaslio Status: ready --> + <chapter id="features.images"> + <title>½¨Á¢ºÍ´¦ÀíͼÏó</title> + + <simpara> + PHPûÏÞÖÆ´´ÔìÐÔµÄHTMLÊä³ö£¬Õâ¿ÉÒÔ½¨Á¢ºÍ²Ù×÷¸÷ÖÖÀàÐ͵ÄͼÏó¸ñʽ, °üÀ¨ gif¡¢png¡¢jpg¡¢wbmp£¬ºÍxpm¡£ÉõÖÁ¸ü¶à£¬ PHP¿ÉÒÔÖ±½ÓÉú³ÉͼÏóÏÔʾµ½ä¯ÀÀÆ÷¡£Äã±ØÐë±àÒëPHPµÄGD¿â²ÅÄÜʹÓá£GDºÍPHP¿ÉÄÜ»¹ÐèÒªÆäËû¿âÀ´Ö§³ÖÄãËùÐèÒªµÄͼÏó¸ñʽ¡£GD 1.6ºóÍ£Ö¹Ö§³ÖGIF¸ñʽ + </simpara> + + <para> + <example> + <title>ÓÃPHP½¨Á¢PNG</title> + <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); +?> +]]> + </programlisting> + </example> +Õâ¸öÀý×ÓÊÇÓÃÒ»¸öÒ³ÃæÀ´ÊµÏÖÀ´ÊµÏÖ±êÇ©µÄÄÚÈÝ: &lt;img + src=&quot;button.php?text&quot;&gt; ÉÏÃæµÄ button.php ½Å±¾¿ÉÒÔʵÏÖ&quot;text&quot; ×Ö·û´®µþ¼ÓÔÚͼÏóÉÏ &quot;images/button1.png&quot; + ²¢ÇÒÊä³öͼÏó¡£ÕâÊÇÒ»¸ö·Ç³£±ãÀûµÄ·½·¨£¬¿ÉÒÔ±ÜÃ⻭ͬÑùµÄ°´Å¥£¬²»ÐèҪÿ´Î¶¼Òª¸Ä±ä°´Å¥µÄÎÄ×Ö£¬ÓôËÖÖ·½·¨¿ÉÒÔ¶¯Ì¬µÄÉú³É¡£ + </para> + + </chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +-->

« previous php.doc.zh (#171) next »