cvs: phpdoc /en/reference/image/functions imagepsloadfont.xml imagettftext.xml
| From: | Jakub Vrana | Date: | Mon, 30 Jan 2006 14:32:54 +0000 |
| Subject: | cvs: phpdoc /en/reference/image/functions imagepsloadfont.xml imagettftext.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969371763@lists.php.net to get a copy of this message | ||
vrana Mon Jan 30 14:32:54 2006 UTC
Modified files:
/phpdoc/en/reference/image/functions imagepsloadfont.xml
imagettftext.xml
Log:
Fill the background
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/image/functions/imagepsloadfont.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/reference/image/functions/imagepsloadfont.xml
diff -u phpdoc/en/reference/image/functions/imagepsloadfont.xml:1.7
phpdoc/en/reference/image/functions/imagepsloadfont.xml:1.8
--- phpdoc/en/reference/image/functions/imagepsloadfont.xml:1.7 Wed Aug 10 04:48:11 2005
+++ phpdoc/en/reference/image/functions/imagepsloadfont.xml Mon Jan 30 14:32:54 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.7 -->
<refentry id="function.imagepsloadfont">
<refnamediv>
@@ -28,6 +28,7 @@
$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);
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/image/functions/imagettftext.xml?r1=1.17&r2=1.18&diff_format=u
Index: phpdoc/en/reference/image/functions/imagettftext.xml
diff -u phpdoc/en/reference/image/functions/imagettftext.xml:1.17
phpdoc/en/reference/image/functions/imagettftext.xml:1.18
--- phpdoc/en/reference/image/functions/imagettftext.xml:1.17 Wed Aug 10 04:48:11 2005
+++ phpdoc/en/reference/image/functions/imagettftext.xml Mon Jan 30 14:32:54 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Revision: 1.17 $ -->
+<!-- $Revision: 1.18 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
<refentry id="function.imagettftext">
<refnamediv>
@@ -165,6 +165,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...';