cvs: phpdoc-fr /reference/image/functions imagealphablending.xml imagecolorset.xml imagecopyresampled.xml imagecopyresized.xml imagecreate.xml
imagepsextendfont.xml imagepsslantfont.xml imagetruecolortopalette.xml imagettftext.xml read-exif-data.xml

From: Date: Wed, 22 Jan 2003 12:07:26 +0000
Subject: cvs: phpdoc-fr /reference/image/functions imagealphablending.xml imagecolorset.xml imagecopyresampled.xml imagecopyresized.xml imagecreate.xml
imagepsextendfont.xml imagepsslantfont.xml imagetruecolortopalette.xml imagettftext.xml read-exif-data.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-169@lists.php.net to get a copy of this message
dams Wed Jan 22 07:07:26 2003 EDT Modified files: /phpdoc-fr/reference/image/functions imagealphablending.xml imagecolorset.xml imagecopyresampled.xml imagecopyresized.xml imagecreate.xml imagepsextendfont.xml imagepsslantfont.xml imagetruecolortopalette.xml imagettftext.xml read-exif-data.xml Log: Major update of the image dir

Index: phpdoc-fr/reference/image/functions/imagealphablending.xml diff -u phpdoc-fr/reference/image/functions/imagealphablending.xml:1.2 phpdoc-fr/reference/image/functions/imagealphablending.xml:1.3 --- phpdoc-fr/reference/image/functions/imagealphablending.xml:1.2 Tue Aug 13 22:19:32 2002 +++ phpdoc-fr/reference/image/functions/imagealphablending.xml Wed Jan 22 07:07:25 2003 @@ -11,7 +11,7 @@ <methodsynopsis> <type>int</type><methodname>imagealphablending</methodname> <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>boolean</type><parameter>blendmode</parameter></methodparam> + <methodparam><type>bool</type><parameter>blendmode</parameter></methodparam> </methodsynopsis> <para> <function>imagealphablending</function> fournit deux modes de dessins Index: phpdoc-fr/reference/image/functions/imagecolorset.xml diff -u phpdoc-fr/reference/image/functions/imagecolorset.xml:1.1 phpdoc-fr/reference/image/functions/imagecolorset.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecolorset.xml:1.1 Sun Apr 14 20:30:31 2002 +++ phpdoc-fr/reference/image/functions/imagecolorset.xml Wed Jan 22 07:07:25 2003 @@ -11,7 +11,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>imagecolorset</methodname> + <type>bool</type><methodname>imagecolorset</methodname> <methodparam><type>resource</type><parameter>im</parameter></methodparam> <methodparam><type>int</type><parameter>index</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> Index: phpdoc-fr/reference/image/functions/imagecopyresampled.xml diff -u phpdoc-fr/reference/image/functions/imagecopyresampled.xml:1.1 phpdoc-fr/reference/image/functions/imagecopyresampled.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecopyresampled.xml:1.1 Sun Apr 14 20:30:34 2002 +++ phpdoc-fr/reference/image/functions/imagecopyresampled.xml Wed Jan 22 07:07:25 2003 @@ -37,16 +37,29 @@ des zones d'une image vers elle-m&ecirc;me, mais si les r&eacute;gions se chevauchent, les r&eacute;sultats sont impr&eacute;visibles. </para> - <para> - Voir aussi - <function>imagecopyresized</function>. - </para> + <note> + <para> + Il y a un probl&egrave;me du aux limitations de la taille de la palette + (255 + 1 couleurs diff&eacute;rentes). Filtrer ou r&eacute;&eacute;chantillonner une image + demande plus de 255 couleurs, une approximation est alors utilis&eacute;e pour + calculer le nouveau nombre de couleurs. Avec une palette, si une nouvelle + couleur ne peut &ecirc;tre alloue&eacute;, la couleur la plus proche (en th&eacute;orie) + est utilis&eacute;e. Ce n'est pas toujours la couleur la plus proche visuellement. + Cela peut g&eacute;n&eacute;rer des probl&egrave;mes &eacute;tranges, comme des images blanches. + Pour &eacute;viter ce probl&egrave;me, passez en image true color, comme celles + g&eacute;n&eacute;r&eacute;e par la fonction <function>imagecreatetruecolor</function>. + </para> + </note> <note> <para> <function>imagecopyresampled</function> a &eacute;t&eacute; ajout&eacute;e en PHP 4.0.6 et n&eacute;cessite GD 2.0.1. </para> </note> + <para> + Voir aussi + <function>imagecopyresized</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagecopyresized.xml diff -u phpdoc-fr/reference/image/functions/imagecopyresized.xml:1.2 phpdoc-fr/reference/image/functions/imagecopyresized.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecopyresized.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecopyresized.xml Wed Jan 22 07:07:25 2003 @@ -35,6 +35,19 @@ r&eacute;gions se chevauchent, le r&eacute;sultat risque d'&ecirc;tre incoh&eacute;rent. </para> + <note> + <para> + Il y a un probl&egrave;me du aux limitations de la taille de la palette + (255 + 1 couleurs diff&eacute;rentes). Filtrer ou r&eacute;&eacute;chantillonner une image + demande plus de 255 couleurs, une approximation est alors utilis&eacute;e pour + calculer le nouveau nombre de couleurs. Avec une palette, si une nouvelle + couleur ne peut &ecirc;tre alloue&eacute;, la couleur la plus proche (en th&eacute;orie) + est utilis&eacute;e. Ce n'est pas toujours la couleur la plus proche visuellement. + Cela peut g&eacute;n&eacute;rer des probl&egrave;mes &eacute;tranges, comme des images blanches. + Pour &eacute;viter ce probl&egrave;me, passez en image true color, comme celles + g&eacute;n&eacute;r&eacute;e par la fonction <function>imagecreatetruecolor</function>. + </para> + </note> <para> Voir aussi <function>imagecopyresampled</function>. Index: phpdoc-fr/reference/image/functions/imagecreate.xml diff -u phpdoc-fr/reference/image/functions/imagecreate.xml:1.2 phpdoc-fr/reference/image/functions/imagecreate.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecreate.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreate.xml Wed Jan 22 07:07:25 2003 @@ -18,6 +18,34 @@ repr&eacute;sentant une image vide, de largeur <parameter>x_size</parameter> et longueur <parameter>y_size</parameter>. </para> + <para> + Nous recommandons l'utilisation de <function>imagecreatetruecolor</function> + &agrave; la place de <function>imagecreate</function>. + </para> + <para> + <example> + <title> + Cr&eacute;ation d'une image GD et affichage de cette image + </title> + <programlisting role="php"> +<![CDATA[ +<?php + header ("Content-type: image/png"); + $im = @imagecreate (50, 100) + or die ("Impossible d'initialiser la librairie GD"); + $background_color = imagecolorallocate ($im, 255, 255, 255); + $text_color = imagecolorallocate ($im, 233, 14, 91); + imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color); + imagepng ($im); +?> +]]> + </programlisting> + </example> + </para> + <para> + Voir aussi + <function>imagecreatetruecolor</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagepsextendfont.xml diff -u phpdoc-fr/reference/image/functions/imagepsextendfont.xml:1.1 phpdoc-fr/reference/image/functions/imagepsextendfont.xml:1.2 --- phpdoc-fr/reference/image/functions/imagepsextendfont.xml:1.1 Sun Apr 14 20:30:43 2002 +++ phpdoc-fr/reference/image/functions/imagepsextendfont.xml Wed Jan 22 07:07:25 2003 @@ -11,7 +11,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>imagepsextendfont</methodname> + <type>bool</type><methodname>imagepsextendfont</methodname> <methodparam><type>resource</type><parameter>font</parameter></methodparam> <methodparam><type>float</type><parameter>extend</parameter></methodparam> </methodsynopsis> Index: phpdoc-fr/reference/image/functions/imagepsslantfont.xml diff -u phpdoc-fr/reference/image/functions/imagepsslantfont.xml:1.1 phpdoc-fr/reference/image/functions/imagepsslantfont.xml:1.2 --- phpdoc-fr/reference/image/functions/imagepsslantfont.xml:1.1 Sun Apr 14 20:30:43 2002 +++ phpdoc-fr/reference/image/functions/imagepsslantfont.xml Wed Jan 22 07:07:25 2003 @@ -11,7 +11,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>imagepsslantfont</methodname> + <type>bool</type><methodname>imagepsslantfont</methodname> <methodparam><type>resource</type><parameter>font</parameter></methodparam> <methodparam><type>float</type><parameter>slant</parameter></methodparam> </methodsynopsis> Index: phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml diff -u phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml:1.2 phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml:1.3 --- phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml:1.2 Tue Aug 13 22:19:33 2002 +++ phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml Wed Jan 22 07:07:25 2003 @@ -11,7 +11,7 @@ <methodsynopsis> <type>void</type><methodname>imagetruecolortopalette</methodname> <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>boolean</type><parameter>dither</parameter></methodparam> + <methodparam><type>bool</type><parameter>dither</parameter></methodparam> <methodparam><type>int</type><parameter>ncolors</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/image/functions/imagettftext.xml diff -u phpdoc-fr/reference/image/functions/imagettftext.xml:1.2 phpdoc-fr/reference/image/functions/imagettftext.xml:1.3 --- phpdoc-fr/reference/image/functions/imagettftext.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagettftext.xml Wed Jan 22 07:07:25 2003 @@ -25,7 +25,11 @@ (<parameter>x</parameter>,<parameter>y</parameter>) (le coin sup&eacute;rieur gauche est l'origine (0,0)), avec un angle de <parameter>angle</parameter>, et dans la couleur <parameter>col</parameter>, en utilisant la police TrueType identifi&eacute;e par - <parameter>fontfile</parameter>. + <parameter>fontfile</parameter>. Suivant la version de GD dont vous + disposez, lorsque le paramtre <parameter>fontfile</parameter> be commence pas + par un slash '/', l'extension '.ttf' sera ajoutŽe au nom du fichier et la + librairie essaiera de trouver un fichier avec ce nom la, dans les chemins + prŽdŽfinies de la librairie pour les polices. </para> <para> Les coordonn&eacute;es (<parameter>x</parameter>,<parameter>y</parameter>) serviront @@ -65,16 +69,20 @@ <example> <title>Exemple avec <function>imagettftext</function></title> <programlisting role="php"> -&lt;?php - header("Content-type: image/gif"); +<![CDATA[ +<?php + header("Content-type: image/jpeg"); $im = imagecreate(400,30); - $black = imagecolorallocate($im, 0,0,0); - $white = imagecolorallocate($im, 255,255,255); + $black = imagecolorallocate($im, 255,255,255); + $white = imagecolorallocate($im, 0,0,0); + + // Remplacez path par votre chemin d'accs aux polices imagettftext($im, 20, 0, 10, 20, $white, "/path/arial.ttf", - "Test en cours... Om&eacute;ga: &amp;#937;"); - imagegif($im); + "Test en cours... Omega: &amp;#937;"); + imagejpeg($im); imagedestroy($im); -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/image/functions/read-exif-data.xml diff -u phpdoc-fr/reference/image/functions/read-exif-data.xml:1.1 phpdoc-fr/reference/image/functions/read-exif-data.xml:1.2 --- phpdoc-fr/reference/image/functions/read-exif-data.xml:1.1 Sun Apr 14 20:30:47 2002 +++ phpdoc-fr/reference/image/functions/read-exif-data.xml Wed Jan 22 07:07:26 2003 @@ -66,7 +66,7 @@ <simpara> <function>read_exif_data</function> n'est disponible que sous PHP 4 , compil&eacute; avec - <link linkend="install.configure.enable-exif">--enable-exif</link>. + <option role="configure">--enable-exif</option>. </simpara> <simpara> <function>read_exif_data</function> ne requiert pas la librairie GD.
« previous php.doc.fr (#169) next »