cvs: phpdoc-zh /features images.xml
| From: | Dallas Thunder | Date: | Thu, 26 Sep 2002 09:08:07 +0000 |
| Subject: | cvs: phpdoc-zh /features images.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-643@lists.php.net to get a copy of this message | ||
dallas Thu Sep 26 05:08:07 2002 EDT
Modified files:
/phpdoc-zh/features images.xml
Log:
Fixed.
Index: phpdoc-zh/features/images.xml
diff -u /dev/null phpdoc-zh/features/images.xml:1.12
--- /dev/null Thu Sep 26 05:08:07 2002
+++ phpdoc-zh/features/images.xml Thu Sep 26 05:08:06 2002
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="gb2312"?>
+<!-- $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");
+ $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>
+ </para>
+
+ <para>
+ ¸Ã·¶Àý¿ÉÒÔÔÚÒ³ÃæÖУ¬ÒÔ <img
src="button.php?text"> µÄÐÎʽµ÷Óá£ÉÏÊöµÄ button.php
½Å±¾»á½«×Ö·û´®¡°text¡±ÏÔʾÔÚÒÔ "images/button1.png"
ÎļþΪ»ù´¡µÄͼÏñÉÏ£¬²¢Êä³ö×îºóµÃµ½µÄͼÏñ¡£Ê¹ÓÃÕâ¸ö·½·¨£¬Äú¾Í²»ÓÃÿ´Î¸ü¸Ä°´Å¥ÉϵÄÎÄ×Ö¶¼ÒªÖÆ×÷Ðµİ´Å¥Í¼ÐΡ£Ê¹ÓÃÕâ¸ö·½·¨£¬°´Å¥Í¼Æ¬¿ÉÒÔ¶¯Ì¬µÄÉú³É¡£
+ </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
+-->