For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > cvs: phpdoc /en/reference/image/functions imagepsloadfont.xml imagettftext.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/image/functions imagepsloadfont.xml imagettftext.xml
Jakub Vrana

2006-01-30, 6:57 pm

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/phpd...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/phpd...8&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...';
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com