cvs: phpdoc-zh /features images.xml

From: Date: Thu, 26 Sep 2002 09:00:46 +0000
Subject: cvs: phpdoc-zh /features images.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-639@lists.php.net to get a copy of this message
dallas Thu Sep 26 05:00:46 2002 EDT Modified files: /phpdoc-zh/features images.xml Log: To UNIX mode. Who did this? Index: phpdoc-zh/features/images.xml diff -u phpdoc-zh/features/images.xml:1.7 phpdoc-zh/features/images.xml:1.8 --- phpdoc-zh/features/images.xml:1.7 Thu Sep 26 04:58:10 2002 +++ phpdoc-zh/features/images.xml Thu Sep 26 05:00:45 2002 @@ -1,22 +1,22 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: gregory $ --> -<!-- EN-Revision: 1.18 Maintainer: thomaslio Status: ready --> - -<!-- CREDITS: Gregory --> - <chapter id="features.images"> - <title>ͼÐεĽ¨Á¢Óë²Ù×÷</title> - - <simpara> - PHP ²¢²»Ö»¾ÖÏÞÓÚ½¨Á¢ HTML µÄÊä³ö£¬ËüͬÑù¿ÉÒÔ±»ÓÃÀ´½¨Á¢ºÍ²Ù×÷¸÷ÖÖ²»Í¬¸ñʽµÄͼƬÎļþ£¬°üÀ¨ GIF¡¢PNG¡¢JPG¡¢WBMP ºÍ XPM¡£¸ü·½±ãµÄÊÇ£¬PHP Äܹ»Ö±½Ó½«Í¼ÐÎÒÔÊý¾ÝÁ÷·½Ê½Êä³öä¯ÀÀÆ÷¡£Èç¹ûҪʹÓøù¦ÄÜ£¬Äú¿ÉÄÜÐèÒª½« PHP ºÍ <link linkend="ref.image">GD ͼÐκ¯Êý¿â</link>һͬ±àÒë¡£¸ù¾ÝÄúÐèҪʹÓõÄͼÐθñʽµÄ²»Í¬£¬GD ºÍ PHP ¿ÉÄÜ»¹ÐèÒªÆäËüµÄÀ©Õ¹¿â¡£ÁíÍ⣬GD ÔÚÆä 1.6 °æ±¾ºó¾Í²»ÔÙÖ§³Ö GIF ¸ñʽÁË¡£ - </simpara> - - <para> - <example> - <title>ʹÓà PHP ½¨Á¢ PNG ͼÏñ</title> - <programlisting role="php"> -<![CDATA[ -<?php +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision$ --> +<!-- $Author$ --> +<!-- EN-Revision: 1.18 Maintainer: thomaslio Status: ready --> + +<!-- CREDITS: Gregory --> + <chapter id="features.images"> + <title>ͼÐεĽ¨Á¢Óë²Ù×÷</title> + + <simpara> + PHP ²¢²»Ö»¾ÖÏÞÓÚ½¨Á¢ HTML µÄÊä³ö£¬ËüͬÑù¿ÉÒÔ±»ÓÃÀ´½¨Á¢ºÍ²Ù×÷¸÷ÖÖ²»Í¬¸ñʽµÄͼƬÎļþ£¬°üÀ¨ GIF¡¢PNG¡¢JPG¡¢WBMP ºÍ XPM¡£¸ü·½±ãµÄÊÇ£¬PHP Äܹ»Ö±½Ó½«Í¼ÐÎÒÔÊý¾ÝÁ÷·½Ê½Êä³öä¯ÀÀÆ÷¡£Èç¹ûҪʹÓøù¦ÄÜ£¬Äú¿ÉÄÜÐèÒª½« PHP ºÍ <link linkend="ref.image">GD ͼÐκ¯Êý¿â</link>һͬ±àÒë¡£¸ù¾ÝÄúÐèҪʹÓõÄͼÐθñʽµÄ²»Í¬£¬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"); @@ -25,35 +25,35 @@ imagestring($im, 3, $px, 9, $string, $orange); imagepng($im); imagedestroy($im); -?> -]]> - </programlisting> - </example> - </para> - - <para> - ¸Ã·¶Àý¿ÉÒÔÔÚÒ³ÃæÖУ¬ÒÔ &lt;img src=&quot;button.php?text&quot;&gt; µÄÐÎʽµ÷Óá£ÉÏÊöµÄ button.php ½Å±¾»á½«×Ö·û´®¡°text¡±ÏÔʾÔÚÒÔ &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 ---> +?> +]]> + </programlisting> + </example> + </para> + + <para> + ¸Ã·¶Àý¿ÉÒÔÔÚÒ³ÃæÖУ¬ÒÔ &lt;img src=&quot;button.php?text&quot;&gt; µÄÐÎʽµ÷Óá£ÉÏÊöµÄ button.php ½Å±¾»á½«×Ö·û´®¡°text¡±ÏÔʾÔÚÒÔ &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 (#639) next »