cvs: phpdoc /en/functions image.xml

From: Date: Tue, 22 May 2001 09:21:41 +0000
Subject: cvs: phpdoc /en/functions image.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335500@lists.php.net to get a copy of this message
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>

« previous php.doc (#969335500) next »