cvs: phpdoc-zh /reference/image/functions imagechar.xml imagecharup.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml

From: Date: Sat, 04 Feb 2006 23:04:40 +0000
Subject: cvs: phpdoc-zh /reference/image/functions imagechar.xml imagecharup.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2772@lists.php.net to get a copy of this message
dallas Sat Feb 4 23:04:40 2006 UTC Modified files: /phpdoc-zh/reference/image/functions imagechar.xml imagecharup.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml Log: Updated. http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/image/functions/imagechar.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/image/functions/imagechar.xml diff -u phpdoc-zh/reference/image/functions/imagechar.xml:1.2 phpdoc-zh/reference/image/functions/imagechar.xml:1.3 --- phpdoc-zh/reference/image/functions/imagechar.xml:1.2 Fri Sep 2 20:10:43 2005 +++ phpdoc-zh/reference/image/functions/imagechar.xml Sat Feb 4 23:04:40 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> <refentry id="function.imagechar"> <refnamediv> <refname>imagechar</refname> @@ -33,7 +33,7 @@ <![CDATA[ <?php -$im = imagecreatetruecolor(100,100); +$im = imagecreate(100,100); $string = 'PHP'; http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/image/functions/imagecharup.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/image/functions/imagecharup.xml diff -u phpdoc-zh/reference/image/functions/imagecharup.xml:1.2 phpdoc-zh/reference/image/functions/imagecharup.xml:1.3 --- phpdoc-zh/reference/image/functions/imagecharup.xml:1.2 Fri Sep 2 20:10:43 2005 +++ phpdoc-zh/reference/image/functions/imagecharup.xml Sat Feb 4 23:04:40 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> <refentry id="function.imagecharup"> <refnamediv> <refname>imagecharup</refname> @@ -33,7 +33,7 @@ <![CDATA[ <?php -$im = imagecreatetruecolor(100,100); +$im = imagecreate(100,100); $string = 'Note that the first letter is a N'; http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/image/functions/imageloadfont.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-zh/reference/image/functions/imageloadfont.xml diff -u phpdoc-zh/reference/image/functions/imageloadfont.xml:1.3 phpdoc-zh/reference/image/functions/imageloadfont.xml:1.4 --- phpdoc-zh/reference/image/functions/imageloadfont.xml:1.3 Sun Sep 4 07:34:49 2005 +++ phpdoc-zh/reference/image/functions/imageloadfont.xml Sat Feb 4 23:04:40 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.imageloadfont"> <refnamediv> <refname>imageloadfont</refname> @@ -70,6 +70,7 @@ <programlisting role="php"> <![CDATA[ <?php +header("Content-type: image/png"); $im = imagecreatetruecolor(50, 20); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/image/functions/imagepsloadfont.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/image/functions/imagepsloadfont.xml diff -u phpdoc-zh/reference/image/functions/imagepsloadfont.xml:1.2 phpdoc-zh/reference/image/functions/imagepsloadfont.xml:1.3 --- phpdoc-zh/reference/image/functions/imagepsloadfont.xml:1.2 Wed Sep 7 21:46:47 2005 +++ phpdoc-zh/reference/image/functions/imagepsloadfont.xml Sat Feb 4 23:04:40 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> <refentry id="function.imagepsloadfont"> <refnamediv> <refname>imagepsloadfont</refname> @@ -23,14 +23,15 @@ <programlisting role="php"> <![CDATA[ <?php -header("Content-type: image/jpeg"); +header("Content-type: image/png"); $im = imagecreatetruecolor(350, 45); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); +imagefilledrectangle($im, 0, 0, 349, 44, $white); $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 +imagepng($im); imagedestroy($im); ?> ]]> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/image/functions/imagestring.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/image/functions/imagestring.xml diff -u phpdoc-zh/reference/image/functions/imagestring.xml:1.2 phpdoc-zh/reference/image/functions/imagestring.xml:1.3 --- phpdoc-zh/reference/image/functions/imagestring.xml:1.2 Wed Sep 7 21:00:03 2005 +++ phpdoc-zh/reference/image/functions/imagestring.xml Sat Feb 4 23:04:40 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: dallas Status: ready --> <refentry id="function.imagestring"> <refnamediv> <refname>imagestring</refname> @@ -32,7 +32,7 @@ <![CDATA[ <?php // ½¨Á¢Ò»·ù 100X30 µÄͼÏñ -$im = imagecreatetruecolor(100, 30); +$im = imagecreate(100, 30); // °×É«±³¾°ºÍÀ¶É«Îı¾ $bg = imagecolorallocate($im, 255, 255, 255); @@ -42,8 +42,8 @@ imagestring($im, 5, 0, 0, "Hello world!", $textcolor); // Êä³öͼÏñ -header("Content-type: image/jpeg"); -imagejpeg($im); +header("Content-type: image/png"); +imagepng($im); ?> ]]> </programlisting> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/image/functions/imagettftext.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/image/functions/imagettftext.xml diff -u phpdoc-zh/reference/image/functions/imagettftext.xml:1.2 phpdoc-zh/reference/image/functions/imagettftext.xml:1.3 --- phpdoc-zh/reference/image/functions/imagettftext.xml:1.2 Wed Sep 7 21:00:03 2005 +++ phpdoc-zh/reference/image/functions/imagettftext.xml Sat Feb 4 23:04:40 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.17 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.18 Maintainer: dallas Status: ready --> <refentry id="function.imagettftext"> <refnamediv> <refname>imagettftext</refname> @@ -148,6 +148,7 @@ $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); +imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw $text = 'Testing...';

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