cvs: phpdoc-fr /reference/image/functions imagestring.xml

From: Date: Wed, 19 Nov 2003 12:16:49 +0000
Subject: cvs: phpdoc-fr /reference/image/functions imagestring.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-926@lists.php.net to get a copy of this message
didou Wed Nov 19 07:16:49 2003 EDT Modified files: /phpdoc-fr/reference/image/functions imagestring.xml Log: adding an example Index: phpdoc-fr/reference/image/functions/imagestring.xml diff -u phpdoc-fr/reference/image/functions/imagestring.xml:1.3 phpdoc-fr/reference/image/functions/imagestring.xml:1.4 --- phpdoc-fr/reference/image/functions/imagestring.xml:1.3 Thu May 29 06:25:39 2003 +++ phpdoc-fr/reference/image/functions/imagestring.xml Wed Nov 19 07:16:49 2003 @@ -26,6 +26,31 @@ utilis&eacute;e). </para> <para> + <example> + <title>Exemple avec <function>imagestring</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// nouvelle iamge 100*30 +$im = imagecreate(100, 30); + +// fond blanc et texte bleu +$bg = imagecolorallocate($im, 255, 255, 255); +$textcolor = imagecolorallocate($im, 0, 0, 255); + +// ajout de la phrase en haut &grave; gauche +imagestring($im, 5, 0, 0, "Hello world!", $textcolor); + +// afichage de l'image +header("Content-type: image/jpg"); +imagejpeg($im); +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>imageloadfont</function>. </para>

« previous php.doc.fr (#926) next »