cvs: phpdoc-zh /reference/image/functions imagepsloadfont.xml imagesy.xml

From: Date: Wed, 07 Sep 2005 21:46:47 +0000
Subject: cvs: phpdoc-zh /reference/image/functions imagepsloadfont.xml imagesy.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2610@lists.php.net to get a copy of this message
dallas Wed Sep 7 17:46:47 2005 EDT Modified files: /phpdoc-zh/reference/image/functions imagepsloadfont.xml imagesy.xml Log: Updated. http://cvs.php.net/diff.php/phpdoc-zh/reference/image/functions/imagepsloadfont.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/image/functions/imagepsloadfont.xml diff -u phpdoc-zh/reference/image/functions/imagepsloadfont.xml:1.1 phpdoc-zh/reference/image/functions/imagepsloadfont.xml:1.2 --- phpdoc-zh/reference/image/functions/imagepsloadfont.xml:1.1 Thu Aug 28 00:08:14 2003 +++ phpdoc-zh/reference/image/functions/imagepsloadfont.xml Wed Sep 7 17:46:47 2005 @@ -1,44 +1,48 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> - <refentry id="function.imagepsloadfont"> - <refnamediv> - <refname>imagepsloadfont</refname> - <refpurpose>´ÓÎļþÖмÓÔØÒ»¸ö PostScript Type 1 ×ÖÌå</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>int</type><methodname>imagepsloadfont</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Èç¹ûÒ»ÇÐÕý³££¬½«·µ»ØÒ»¸öºÏ·¨µÄ×ÖÌåË÷ÒýÒÔ±¸Ê¹Ó᣷ñÔò·µ»Ø - &false; ²¢ÏÔʾһÌõÐÅϢ˵Ã÷ÄÄÀï´íÁË£¬¶øÄãÎÞ·¨Ö±½Ó¶ÁÈ¡´ËÐÅÏ¢£¬ÒòΪµ±Ç°ÊÇÒÔͼÏñ¸ñʽÔÚÊä³ö¡£ - </para> - <para> - <programlisting role="php"> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> +<refentry id="function.imagepsloadfont"> + <refnamediv> + <refname>imagepsloadfont</refname> + <refpurpose>´ÓÎļþÖмÓÔØÒ»¸ö PostScript Type 1 ×ÖÌå</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>resource</type><methodname>imagepsloadfont</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÒ»ÇÐÕý³££¬½«·µ»ØÒ»¸öºÏ·¨µÄ×ÖÌåË÷ÒýÒÔ±¸Ê¹Ó᣷ñÔò·µ»Ø + &false; ²¢ÏÔʾһÌõÐÅϢ˵Ã÷ÄÄÀï´íÁË£¬µ«²»ÄÜÖ±½Ó¶ÁÈ¡´ËÐÅÏ¢£¬ÒòΪÊä³ö¸ñʽÊÇͼÏñ¡£ + </para> + <para> + <example> + <title><function>imagepsloadfont</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php -header ("Content-type: image/jpeg"); -$im = imagecreate (350, 45); -$black = imagecolorallocate ($im, 0, 0, 0); -$white = imagecolorallocate ($im, 255, 255, 255); -$font = imagepsloadfont ("bchbi.pfb"); // or locate your .pfb files on your machine -imagepstext ($im, "Testing... It worked!", $font, 32, $white, $black, 32, 32); -imagepsfreefont ($font); -imagejpeg ($im, "", 100); //for best quality...your mileage may vary -imagedestroy ($im); +header("Content-type: image/jpeg"); +$im = imagecreatetruecolor(350, 45); +$black = imagecolorallocate($im, 0, 0, 0); +$white = imagecolorallocate($im, 255, 255, 255); +$font = imagepsloadfont("bchbi.pfb"); // or locate your .pfb files on your machine +imagepstext($im, "Testing... It worked!", $font, 32, $white, $black, 32, 32); +imagepsfreefont($font); +imagejpeg($im, "", 100); //for best quality...your mileage may vary +imagedestroy($im); ?> ]]> - </programlisting> - </para> - <para> - ²Î¼û <function>imagepsfreefont</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + &note.config.t1lib; + <para> + ²Î¼û <function>imagepsfreefont</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/image/functions/imagesy.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/image/functions/imagesy.xml diff -u phpdoc-zh/reference/image/functions/imagesy.xml:1.2 phpdoc-zh/reference/image/functions/imagesy.xml:1.3 --- phpdoc-zh/reference/image/functions/imagesy.xml:1.2 Wed Sep 7 17:00:03 2005 +++ phpdoc-zh/reference/image/functions/imagesy.xml Wed Sep 7 17:46:47 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.imagesy"> <refnamediv> <refname>imagesy</refname>

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