[PHP-DOC] cvs: phpdoc /en/functions image.xml From: Damien Seguy (dams <email protected>)
Date: 05/22/01

dams Tue May 22 02:21:41 2001 EDT

  Modified files:
    /phpdoc/en/functions image.xml
  Log:
  Added example for psloadfont
  
Index: phpdoc/en/functions/image.xml
diff -u phpdoc/en/functions/image.xml:1.40 phpdoc/en/functions/image.xml:1.41
--- phpdoc/en/functions/image.xml:1.40 Thu May 17 01:37:05 2001
+++ phpdoc/en/functions/image.xml Tue May 22 02:21:40 2001
@@ -2152,6 +2152,23 @@
      wrong.
     </para>
     <para>
+ <programlisting role="php">
+&lt;?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);
+?&gt;
+ </programlisting role="php">
+ </para>
+ <para>
      See also <function>ImagePSFreeFont</function>.
     </para>
    </refsect1>