aidan           Thu Aug 26 02:33:50 2004 EDT

  Modified files:              
    /phpdoc/en/reference/image/functions        imagestring.xml 
  Log:
  whitespace + changed see also (sorry Derick!)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/image/functions/imagestring.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/image/functions/imagestring.xml
diff -u phpdoc/en/reference/image/functions/imagestring.xml:1.5 
phpdoc/en/reference/image/functions/imagestring.xml:1.6
--- phpdoc/en/reference/image/functions/imagestring.xml:1.5     Mon Aug 23 09:56:42 
2004
+++ phpdoc/en/reference/image/functions/imagestring.xml Thu Aug 26 02:33:49 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
   <refentry id="function.imagestring">
    <refnamediv>
@@ -31,27 +31,26 @@
       <programlisting role="php">
 <![CDATA[
 <?php
+// create a 100*30 image
+$im = imagecreate(100, 30);
 
-  // create a 100*30 image
-  $im = imagecreate(100, 30);
+// white background and blue text
+$bg = imagecolorallocate($im, 255, 255, 255);
+$textcolor = imagecolorallocate($im, 0, 0, 255);
 
-  // white background and blue text
-  $bg = imagecolorallocate($im, 255, 255, 255);
-  $textcolor = imagecolorallocate($im, 0, 0, 255);
-  
-  // write the string at the top left
-  imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
-  
-  // output the image
-  header("Content-type: image/jpg");
-  imagejpeg($im);
+// write the string at the top left
+imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
+
+// output the image
+header("Content-type: image/jpeg");
+imagejpeg($im);
 ?>
 ]]>
       </programlisting>
      </example>
     </para>
     <para>
-     See also <function>imageloadfont</function>.
+     See also <function>imageloadfont</function>, and 
<function>imagettftext</function>.
     </para>
    </refsect1>
   </refentry>

Reply via email to