cvs: phpdoc-fr /reference/image configure.xml ini.xml /reference/image/functions exif-imagetype.xml getimagesize.xml image2wbmp.xml
imagealphablending.xml imagearc.xml imagechar.xml imagecharup.xml imagecolorallocate.xml imagecolorat.xml imagecolorclosest.xml
imagecolorclosestalpha.xml imagecolordeallocate.xml imagecolorexact.xml imagecolorexactalpha.xml imagecolorresolve.xml imagecolorresolvealpha.xml
imagecolorset.xml imagecolorsforindex.xml imagecolorstotal.xml imagecolortransparent.xml imagecopy.xml imagecopymerge.xml imagecopymergegray.xml
imagecopyresampled.xml imagecopyresized.xml imagecreate.xml imagecreatefromgd2part.xml imagecreatefromgif.xml imagecreatefromjpeg.xml
imagecreatefrompng.xml imagecreatefromstring.xml imagecreatefromwbmp.xml imagecreatefromxbm.xml imagecreatefromxpm.xml imagecreatetruecolor.xml
imagedashedline.xml imagedestroy.xml imageellipse.xml imagefill.xml imagefilledarc.xml imagefilledellipse.xml imagefilledpolygon.xml
imagefilledrectangle.xml imagefilltoborder.xml imagefontheight.xml imagefontwidth.xml imagegammacorrect.xml imagegd2.xml imagegif.xml
imageinterlace.xml imagejpeg.xml imageline.xml imageloadfont.xml imagepalettecopy.xml imagepng.xml imagepolygon.xml imagepsbbox.xml
imagepscopyfont.xml imagepsencodefont.xml imagepsextendfont.xml imagepsfreefont.xml imagepsloadfont.xml imagepsslantfont.xml imagepstext.xml
imagerectangle.xml imagesetbrush.xml imagesetpixel.xml imagesetthickness.xml imagesettile.xml imagestring.xml imagestringup.xml imagesx.xml
imagesy.xml imagetruecolortopalette.xml imagettfbbox.xml imagettftext.xml imagetypes.xml imagewbmp.xml jpeg2wbmp.xml png2wbmp.xml read-exif-data.xml

From: Date: Thu, 29 May 2003 10:25:40 +0000
Subject: cvs: phpdoc-fr /reference/image configure.xml ini.xml /reference/image/functions exif-imagetype.xml getimagesize.xml image2wbmp.xml
imagealphablending.xml imagearc.xml imagechar.xml imagecharup.xml imagecolorallocate.xml imagecolorat.xml imagecolorclosest.xml
imagecolorclosestalpha.xml imagecolordeallocate.xml imagecolorexact.xml imagecolorexactalpha.xml imagecolorresolve.xml imagecolorresolvealpha.xml
imagecolorset.xml imagecolorsforindex.xml imagecolorstotal.xml imagecolortransparent.xml imagecopy.xml imagecopymerge.xml imagecopymergegray.xml
imagecopyresampled.xml imagecopyresized.xml imagecreate.xml imagecreatefromgd2part.xml imagecreatefromgif.xml imagecreatefromjpeg.xml
imagecreatefrompng.xml imagecreatefromstring.xml imagecreatefromwbmp.xml imagecreatefromxbm.xml imagecreatefromxpm.xml imagecreatetruecolor.xml
imagedashedline.xml imagedestroy.xml imageellipse.xml imagefill.xml imagefilledarc.xml imagefilledellipse.xml imagefilledpolygon.xml
imagefilledrectangle.xml imagefilltoborder.xml imagefontheight.xml imagefontwidth.xml imagegammacorrect.xml imagegd2.xml imagegif.xml
imageinterlace.xml imagejpeg.xml imageline.xml imageloadfont.xml imagepalettecopy.xml imagepng.xml imagepolygon.xml imagepsbbox.xml
imagepscopyfont.xml imagepsencodefont.xml imagepsextendfont.xml imagepsfreefont.xml imagepsloadfont.xml imagepsslantfont.xml imagepstext.xml
imagerectangle.xml imagesetbrush.xml imagesetpixel.xml imagesetthickness.xml imagesettile.xml imagestring.xml imagestringup.xml imagesx.xml
imagesy.xml imagetruecolortopalette.xml imagettfbbox.xml imagettftext.xml imagetypes.xml imagewbmp.xml jpeg2wbmp.xml png2wbmp.xml read-exif-data.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-444@lists.php.net to get a copy of this message
dams Thu May 29 06:25:40 2003 EDT Modified files: /phpdoc-fr/reference/image configure.xml ini.xml /phpdoc-fr/reference/image/functions exif-imagetype.xml getimagesize.xml image2wbmp.xml imagealphablending.xml imagearc.xml imagechar.xml imagecharup.xml imagecolorallocate.xml imagecolorat.xml imagecolorclosest.xml imagecolorclosestalpha.xml imagecolordeallocate.xml imagecolorexact.xml imagecolorexactalpha.xml imagecolorresolve.xml imagecolorresolvealpha.xml imagecolorset.xml imagecolorsforindex.xml imagecolorstotal.xml imagecolortransparent.xml imagecopy.xml imagecopymerge.xml imagecopymergegray.xml imagecopyresampled.xml imagecopyresized.xml imagecreate.xml imagecreatefromgd2part.xml imagecreatefromgif.xml imagecreatefromjpeg.xml imagecreatefrompng.xml imagecreatefromstring.xml imagecreatefromwbmp.xml imagecreatefromxbm.xml imagecreatefromxpm.xml imagecreatetruecolor.xml imagedashedline.xml imagedestroy.xml imageellipse.xml imagefill.xml imagefilledarc.xml imagefilledellipse.xml imagefilledpolygon.xml imagefilledrectangle.xml imagefilltoborder.xml imagefontheight.xml imagefontwidth.xml imagegammacorrect.xml imagegd2.xml imagegif.xml imageinterlace.xml imagejpeg.xml imageline.xml imageloadfont.xml imagepalettecopy.xml imagepng.xml imagepolygon.xml imagepsbbox.xml imagepscopyfont.xml imagepsencodefont.xml imagepsextendfont.xml imagepsfreefont.xml imagepsloadfont.xml imagepsslantfont.xml imagepstext.xml imagerectangle.xml imagesetbrush.xml imagesetpixel.xml imagesetthickness.xml imagesettile.xml imagestring.xml imagestringup.xml imagesx.xml imagesy.xml imagetruecolortopalette.xml imagettfbbox.xml imagettftext.xml imagetypes.xml imagewbmp.xml jpeg2wbmp.xml png2wbmp.xml read-exif-data.xml Log: spring commit

Index: phpdoc-fr/reference/image/configure.xml diff -u phpdoc-fr/reference/image/configure.xml:1.1 phpdoc-fr/reference/image/configure.xml:1.2 --- phpdoc-fr/reference/image/configure.xml:1.1 Tue Dec 17 21:44:09 2002 +++ phpdoc-fr/reference/image/configure.xml Thu May 29 06:25:39 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <section id="image.installation"> &reftitle.install; <para> @@ -7,7 +7,10 @@ l'option <option role="configure">--with-gd[=DIR]</option>, o&ugrave; DIR est le dossier d'installation de GD. Il est recommand&eacute; d'utiliser la version de GD qui est distribu&eacute; avec PHP, en utilisant simplement l'option - <option role="configure">--with-gd</option>. + <option role="configure">--with-gd</option>. Sous Windows, vous devez + inclure la librairie <filename>php_gd2.dll</filename> comme extension dans + le fichier &php.ini;. Il y a aussi la librairie <filename>php_gd.dll</filename> + pour GD version 1.x mais elle n'est pas recommand&eacute;e. </para> <para> Augmentez les possibilit&eacute;s des GD de g&eacute;rer d'autres formats d'images Index: phpdoc-fr/reference/image/ini.xml diff -u phpdoc-fr/reference/image/ini.xml:1.2 phpdoc-fr/reference/image/ini.xml:1.3 --- phpdoc-fr/reference/image/ini.xml:1.2 Mon Feb 3 07:32:17 2003 +++ phpdoc-fr/reference/image/ini.xml Thu May 29 06:25:39 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <section id="image.configuration"> &reftitle.runtime; &extension.runtime; @@ -53,7 +53,7 @@ &ini.table.bottom; </para> <para> - &ini.explain; + &ini.descriptions.title; <variablelist> <varlistentry id="ini.exif.encode_unicode"> <term> Index: phpdoc-fr/reference/image/functions/exif-imagetype.xml diff -u phpdoc-fr/reference/image/functions/exif-imagetype.xml:1.1 phpdoc-fr/reference/image/functions/exif-imagetype.xml:1.2 --- phpdoc-fr/reference/image/functions/exif-imagetype.xml:1.1 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/exif-imagetype.xml Thu May 29 06:25:39 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/image.xml, last change in rev 1.81 --> <refentry id="function.exif-imagetype"> <refnamediv> @@ -9,7 +9,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>int|false</type><methodname>exif_imagetype</methodname> + <type>int</type><methodname>exif_imagetype</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/image/functions/getimagesize.xml diff -u phpdoc-fr/reference/image/functions/getimagesize.xml:1.3 phpdoc-fr/reference/image/functions/getimagesize.xml:1.4 --- phpdoc-fr/reference/image/functions/getimagesize.xml:1.3 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/getimagesize.xml Thu May 29 06:25:39 2003 @@ -30,20 +30,36 @@ <para> <function>getimagesize</function> retourne un tableau de 4 &eacute;l&eacute;ments. L'index 0 contient la largeur. L'index 1 contient la longueur. L'index 2 - contient le type de l'image : 1 = <acronym>GIF</acronym>, 2 = <acronym>JPG</acronym>, - 3 = <acronym>PNG</acronym>, 5 = <acronym>PSD</acronym>, 6 = <acronym>BMP</acronym>. + contient le type de l'image : + 1 = <acronym>GIF</acronym>, + 2 = <acronym>JPG</acronym>, + 3 = <acronym>PNG</acronym>, + 5 = <acronym>PSD</acronym>, + 6 = <acronym>BMP</acronym>, + 7 = <acronym>TIFF</acronym> (Ordre des octets intel), + 8 = <acronym>TIFF</acronym> (Ordre des octets Motorola), + 9 = <acronym>JPC</acronym>, + 10 = <acronym>JP2</acronym>, + 11 = <acronym>JPX</acronym>, + 12 = <acronym>JB2</acronym>, + 13 = <acronym>SWC</acronym>, + 14 = <acronym>IFF</acronym>. + Ces valeurs correspondent aux constantes IMAGETYPE + qui ont &eacute;t&eacute; ajout&eacute;e en PHP 4.3. L'index 3 contient la cha&icirc;ne &agrave; placer dans les balises <acronym>HTML</acronym> : <literal>"height=xxx width=xxx"</literal>. <example> <title>Exemple avec <function>getimagesize</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $size = getimagesize("img/flag.jpg"); -?&gt; -&lt;IMG SRC="img/flag.jpg" -&lt;?php +?> +<IMG SRC="img/flag.jpg" +<?php echo $size[3]; -?&gt;> +?>> +]]> </programlisting> </example> </para> @@ -51,9 +67,11 @@ <example> <title><function>getimagesize</function> avec une URL</title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $size = getimagesize("http://www.php.net/gifs/logo.gif"); -?&gt; +?> +]]> </programlisting> </example> </para> @@ -63,7 +81,44 @@ <literal>channel</literal> vaudra 3 avec les images RGB, et 4 avec les images CMYK. <literal>bits</literal> est le nombre de bits de chaque couleur. </para> + <para> + Depuis PHP 4.3, <literal>bits</literal> et + <literal>channels</literal> sont pr&eacute;sent pour tous les types d'images. + Cependant, la pr&eacute;sence de ces valeurs peut mener &agrave; la confusion. Par exemple, + une image <acronym>GIF</acronym> utilise toujours trois canaux par pixel, + mais le nombre de bits par pixel ne peut &ecirc;tre calcul&eacute; dans le cas + d'une image anim&eacute;e <acronym>GIF</acronym> ayant une table de couleur globale. + </para> + <para> + Certains formats peuvent ne contenir aucune image, ou bien plusieurs images. + Dans ces cas, <function>getimagesize</function> peut ne pas &ecirc;tre capable de + d&eacute;terminer correctement la taille de l'image. <function>getimagesize</function> + retourne alors z&eacute;ro comme taille de hauteur et largeur. + </para> <para> + Depuis PHP 4.3, <function>getimagesize</function> retourne aussi un param&egrave;tre + additionnel, <literal>mime</literal>, qui correspond au type MIME d'une image. + Cette information peut &ecirc;tre utilis&eacute;e pour envoyer l'ent&ecirc;te HTTP correct. + <example> + <title><function>getimagesize</function> et types MIME</title> + <programlisting role="php"> +<![CDATA[ +<?php +$size = getimagesize ($filename); +$fp=fopen($filename, "rb"); +if ($size && $fp) { + header("Content-type: {$size['mime']}"); + fpassthru($fp); + exit; +} else { + // error +} +?> +]]> + </programlisting> + </example> + </para> + <para> Si l'acc&egrave;s &agrave; <parameter>filename</parameter> est impossible, ou si ce n'est pas une image valide, <function>getimagesize</function> retournera <literal>NULL</literal> et g&eacute;n&eacute;rera une alerte. @@ -81,23 +136,33 @@ <example> <title><function>getimagesize</function> qui retourne IPTC</title> <programlisting role="php"> -&lt;?php - $size = getimagesize("testimg.jpg",&amp;$info); +<![CDATA[ +<?php + $size = getimagesize("testimg.jpg",&$info); if (isset($info["APP13"])) { $iptc = iptcparse($info["APP13"]); var_dump($iptc); } -?&gt; +?> +]]> </programlisting> </example> <note> <simpara> <function>getimagesize</function> ne requiert pas la biblioth&egrave;que GD. </simpara> - </note> - <note> <simpara> Le support URL a &eacute;t&eacute; ajout&eacute; en PHP 4.0.5. + </simpara> + <simpara> + Voir aussi + <function>image_type_to_mime_type</function>, + <function>exif_imagetype</function>, + <function>exif_read_data</function> et + <function>exif_thumbnail</function>. + </simpara> + <simpara> + Le support du format TIFF a &eacute;t&eacute; ajout&eacute; en PHP 4.2. </simpara> </note> </para> Index: phpdoc-fr/reference/image/functions/image2wbmp.xml diff -u phpdoc-fr/reference/image/functions/image2wbmp.xml:1.1 phpdoc-fr/reference/image/functions/image2wbmp.xml:1.2 --- phpdoc-fr/reference/image/functions/image2wbmp.xml:1.1 Sun Apr 14 20:30:28 2002 +++ phpdoc-fr/reference/image/functions/image2wbmp.xml Thu May 29 06:25:39 2003 @@ -10,16 +10,16 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>image2wbmp</methodname> - <methodparam><type>int</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>threshold</parameter></methodparam> </methodsynopsis> <para> <function>image2wbmp</function> cr&eacute;e une image <acronym>WBMP</acronym> - &agrave; partir de l'image <parameter>im</parameter>. Si le param&egrave;tre + &agrave; partir de l'image <parameter>image</parameter>. Si le param&egrave;tre <parameter>filename</parameter> est fourni, l'image sera cr&eacute;&eacute;e dans ce fichier, et sinon, elle sera envoy&eacute;e au navigateur. - <parameter>im</parameter> est une image valide, cr&eacute;&eacute;e avec la + <parameter>image</parameter> est une image valide, cr&eacute;&eacute;e avec la fonction <function>imagecreate</function>. </para> <para> Index: phpdoc-fr/reference/image/functions/imagealphablending.xml diff -u phpdoc-fr/reference/image/functions/imagealphablending.xml:1.3 phpdoc-fr/reference/image/functions/imagealphablending.xml:1.4 --- phpdoc-fr/reference/image/functions/imagealphablending.xml:1.3 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagealphablending.xml Thu May 29 06:25:39 2003 @@ -3,14 +3,14 @@ <!-- last change to 'imagealphablending' in en/ tree in rev 1.36 --> <refentry id="function.imagealphablending"> <refnamediv> - <refname>ImageAlphaBlending</refname> + <refname>imagealphablending</refname> <refpurpose>Modifie le mode de blending d'une image</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagealphablending</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>bool</type><parameter>blendmode</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/image/functions/imagearc.xml diff -u phpdoc-fr/reference/image/functions/imagearc.xml:1.2 phpdoc-fr/reference/image/functions/imagearc.xml:1.3 --- phpdoc-fr/reference/image/functions/imagearc.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagearc.xml Thu May 29 06:25:39 2003 @@ -3,31 +3,38 @@ <!-- last change to 'imagearc' in en/ tree in rev 1.36 --> <refentry id="function.imagearc"> <refnamediv> - <refname>ImageArc</refname> + <refname>imagearc</refname> <refpurpose>Dessine une ellipse partielle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagearc</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>cx</parameter></methodparam> <methodparam><type>int</type><parameter>cy</parameter></methodparam> <methodparam><type>int</type><parameter>w</parameter></methodparam> <methodparam><type>int</type><parameter>h</parameter></methodparam> <methodparam><type>int</type><parameter>s</parameter></methodparam> <methodparam><type>int</type><parameter>e</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagearc</function> dessine une ellipse partielle, centr&eacute;e sur <parameter>cx</parameter>, <parameter>cy</parameter> (le coin en haut &agrave; gauche est l'origine (0,0)) dans l'image r&eacute;f&eacute;renc&eacute;e par - <parameter>im</parameter>. <parameter>w</parameter> et + <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> sp&eacute;cifient la largeur et la hauteur de l'ellipse, tandis que le d&eacute;but et la fin de l'arc sont donn&eacute;s en degr&eacute;s, par les arguments <parameter>s</parameter> et - <parameter>e</parameter>. + <parameter>e</parameter>. <parameter>color</parameter> est la couleur + utilis&eacute;e pour dessiner l'ellipse. + </para> + <para> + Voir aussi + <function>imageellipse</function>, + <function>imagefilledellipse</function> et + <function>imagefilledarc</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagechar.xml diff -u phpdoc-fr/reference/image/functions/imagechar.xml:1.2 phpdoc-fr/reference/image/functions/imagechar.xml:1.3 --- phpdoc-fr/reference/image/functions/imagechar.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagechar.xml Thu May 29 06:25:39 2003 @@ -3,27 +3,28 @@ <!-- last change to 'imagechar' in en/ tree in rev 1.36 --> <refentry id="function.imagechar"> <refnamediv> - <refname>ImageChar</refname> + <refname>imagechar</refname> <refpurpose>Dessine un caract&egrave;re horizontalement</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagechar</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>int</type><parameter>font</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> <methodparam><type>string</type><parameter>c</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagechar</function> dessine le premier caract&egrave;re de la cha&icirc;ne <parameter>c</parameter> dans l'image <parameter>id</parameter> avec le coin sup&eacute;rieur gauche plac&eacute; &agrave; la position <parameter>x</parameter>,<parameter>y</parameter> (le coin en haut &agrave; gauche est l'origine (0,0)) avec la couleur - <parameter>col</parameter>. Si la police est 1, 2, 3, 4 ou 5, une police int&eacute;gr&eacute;e - sera utilis&eacute;e (plus le chiffre est grand, plus grande est la police). + <parameter>color</parameter>. Si la police est 1, 2, 3, 4 ou 5, + une police int&eacute;gr&eacute;e sera utilis&eacute;e (plus le + chiffre est grand, plus grande est la police). </para> <para> Voir aussi Index: phpdoc-fr/reference/image/functions/imagecharup.xml diff -u phpdoc-fr/reference/image/functions/imagecharup.xml:1.2 phpdoc-fr/reference/image/functions/imagecharup.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecharup.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecharup.xml Thu May 29 06:25:39 2003 @@ -3,19 +3,19 @@ <!-- last change to 'imagecharup' in en/ tree in rev 1.36 --> <refentry id="function.imagecharup"> <refnamediv> - <refname>ImageCharUp</refname> + <refname>imagecharup</refname> <refpurpose>Dessine un caract&egrave;re verticalement</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecharup</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>int</type><parameter>font</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> <methodparam><type>string</type><parameter>c</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagecharup</function> dessine le premier caract&egrave;re @@ -23,7 +23,7 @@ <parameter>id</parameter> avec le coin sup&eacute;rieur gauche plac&eacute; &agrave; la position (<parameter>x</parameter>,<parameter>y</parameter>) (le coin en haut &agrave; gauche est l'origine (0,0)), avec la couleur - <parameter>col</parameter>. Si la police est 1, 2, 3, 4 ou 5, une police + <parameter>color</parameter>. Si la police est 1, 2, 3, 4 ou 5, une police int&eacute;gr&eacute;e sera utilis&eacute;e (plus le chiffre est grand, plus grande est la police). </para> Index: phpdoc-fr/reference/image/functions/imagecolorallocate.xml diff -u phpdoc-fr/reference/image/functions/imagecolorallocate.xml:1.2 phpdoc-fr/reference/image/functions/imagecolorallocate.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecolorallocate.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecolorallocate.xml Thu May 29 06:25:39 2003 @@ -3,14 +3,14 @@ <!-- last change to 'imagecolorallocate' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorallocate"> <refnamediv> - <refname>ImageColorAllocate</refname> + <refname>imagecolorallocate</refname> <refpurpose>Alloue une couleur pour une image</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorallocate</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> <methodparam><type>int</type><parameter>blue</parameter></methodparam> @@ -19,17 +19,19 @@ <function>imagecolorallocate</function> retourne un identifiant de couleur, repr&eacute;sentant la couleur compos&eacute;e avec les couleurs RGB (<parameter>red</parameter>, <parameter>green</parameter>, - <parameter>blue</parameter>). L'argument <parameter>im</parameter> est + <parameter>blue</parameter>). L'argument <parameter>image</parameter> est le r&eacute;sultat de la fonction <function>imagecreate</function>. <function>imagecolorallocate</function> doit &ecirc;tre appel&eacute;e pour cr&eacute;er chaque couleur - qui sera repr&eacute;sent&eacute;e par <parameter>im</parameter>. + qui sera repr&eacute;sent&eacute;e par <parameter>image</parameter>. <informalexample> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $white = imagecolorallocate($im, 255,255,255); $black = imagecolorallocate($im, 0,0,0); -?&gt; +?> +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/image/functions/imagecolorat.xml diff -u phpdoc-fr/reference/image/functions/imagecolorat.xml:1.2 phpdoc-fr/reference/image/functions/imagecolorat.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecolorat.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecolorat.xml Thu May 29 06:25:39 2003 @@ -3,23 +3,43 @@ <!-- last change to 'imagecolorat' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorat"> <refnamediv> - <refname>ImageColorAt</refname> + <refname>imagecolorat</refname> <refpurpose>Retourne l'index de la couleur d'un pixel donn&eacute;</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorat</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> </methodsynopsis> <para> <function>imagecolorat</function> retourne l'index de la couleur du pixel situ&eacute; aux coordonn&eacute;es (<parameter>x</parameter>, <parameter>y</parameter>), dans l'image - <parameter>im</parameter>. + <parameter>image</parameter>. </para> <para> + Si &php; supporte la librairie GD library 2.0 ou plus r&eacute;cent, et que l'image + est une image en truecolor, cette fonction retourne la valeur RGB + du pixel, sous forme d'un entier. Utiliser les op&eacute;rateurs de bits et les + masques pour distinguer le rouge, du vert du bleu : + <example> + <title>Acc&egrave;s aux valeurs RGB</title> + <programlisting role="php"> +<![CDATA[ +<?php +$im = ImageCreateFromPng("rockym.png"); +$rgb = ImageColorAt($im, 100, 100); +$r = ($rgb >> 16) & 0xFF; +$g = ($rgb >> 8) & 0xFF; +$b = $rgb & 0xFF; +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>imagecolorset</function> et <function>imagecolorsforindex</function>. Index: phpdoc-fr/reference/image/functions/imagecolorclosest.xml diff -u phpdoc-fr/reference/image/functions/imagecolorclosest.xml:1.1 phpdoc-fr/reference/image/functions/imagecolorclosest.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecolorclosest.xml:1.1 Sun Apr 14 20:30:30 2002 +++ phpdoc-fr/reference/image/functions/imagecolorclosest.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecolorclosest' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorclosest"> <refnamediv> - <refname>ImageColorClosest</refname> + <refname>imagecolorclosest</refname> <refpurpose> Retourne l'index de la couleur la plus proche d'une couleur donn&eacute;e. </refpurpose> @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorclosest</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> <methodparam><type>int</type><parameter>blue</parameter></methodparam> @@ -22,8 +22,9 @@ palette qui est la plus proche de la valeur RGB pass&eacute;e. </para> <para> - La "distance" entre la couleur souhait&eacute;e et les couleurs de la palette est calcul&eacute;e - en consid&eacute;rant l'espace RGB comme un espace &agrave; 3 dimensions. + La "distance" entre la couleur souhait&eacute;e et les couleurs de + la palette est calcul&eacute;e en consid&eacute;rant l'espace RGB + comme un espace &agrave; 3 dimensions. </para> <para> Voir aussi Index: phpdoc-fr/reference/image/functions/imagecolorclosestalpha.xml diff -u phpdoc-fr/reference/image/functions/imagecolorclosestalpha.xml:1.1 phpdoc-fr/reference/image/functions/imagecolorclosestalpha.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecolorclosestalpha.xml:1.1 Sun Apr 14 20:30:30 2002 +++ phpdoc-fr/reference/image/functions/imagecolorclosestalpha.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecolorclosestalpha' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorclosestalpha"> <refnamediv> - <refname>ImageColorClosestAlpha</refname> + <refname>imagecolorclosestalpha</refname> <refpurpose> Retourne la couleur la plus proche, en tenant compte du canal alpha </refpurpose> @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorclosestalpha</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> <methodparam><type>int</type><parameter>blue</parameter></methodparam> @@ -20,7 +20,7 @@ </methodsynopsis> <para> <function>imagecolorclosestalpha</function> retourne l'index de la - couleur, dans la palette de l'image <parameter>im</parameter>, + couleur, dans la palette de l'image <parameter>image</parameter>, la plus proche de la couleur sp&eacute;cifi&eacute;e par les autres param&egrave;tres, au format <acronym>RGB</acronym> et de canal alpha <parameter>alpha</parameter>. </para> Index: phpdoc-fr/reference/image/functions/imagecolordeallocate.xml diff -u phpdoc-fr/reference/image/functions/imagecolordeallocate.xml:1.1 phpdoc-fr/reference/image/functions/imagecolordeallocate.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecolordeallocate.xml:1.1 Sun Apr 14 20:30:30 2002 +++ phpdoc-fr/reference/image/functions/imagecolordeallocate.xml Thu May 29 06:25:39 2003 @@ -3,30 +3,33 @@ <!-- last change to 'imagecolordeallocate' in en/ tree in rev 1.36 --> <refentry id="function.imagecolordeallocate"> <refnamediv> - <refname>ImageColorDeAllocate</refname> - <refpurpose> - D&eacute;salloue une couleur pour une image - </refpurpose> + <refname>imagecolordeallocate</refname> + <refpurpose>Supprime une couleur d'une image</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolordeallocate</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>int</type><parameter>index</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> - <function>imagecolordeallocate</function> d&eacute;salloue une couleur + <function>imagecolordeallocate</function> d&eacute;salloue la couleur + <parameter>color</parameter> pr&eacute;c&eacute;demment allou&eacute;e avec la fonction - <function>imagecolorallocate</function>. - <informalexample> + <function>imagecolorallocate</function>, pour l'image + <parameter>image</parameter>. + <example> + <title>Exemple avec <function>imagecolordeallocate</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $white = imagecolorallocate($im, 255, 255, 255); imagecolordeallocate($im, $white); -?&gt; +?> +]]> </programlisting> - </informalexample> + </example> </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagecolorexact.xml diff -u phpdoc-fr/reference/image/functions/imagecolorexact.xml:1.2 phpdoc-fr/reference/image/functions/imagecolorexact.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecolorexact.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecolorexact.xml Thu May 29 06:25:39 2003 @@ -3,14 +3,14 @@ <!-- last change to 'imagecolorexact' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorexact"> <refnamediv> - <refname>ImageColorExact</refname> + <refname>imagecolorexact</refname> <refpurpose>Retourne l'index de la couleur donn&eacute;e</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorexact</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> <methodparam><type>int</type><parameter>blue</parameter></methodparam> @@ -18,7 +18,7 @@ <para> <function>imagecolorexact</function> retourne l'index de la couleur sp&eacute;cifi&eacute;e dans la palette de l'image - <parameter>im</parameter>. + <parameter>image</parameter>. </para> <para> Si la couleur n'existe pas dans cette palette, <function>imagecolorexact</function> Index: phpdoc-fr/reference/image/functions/imagecolorexactalpha.xml diff -u phpdoc-fr/reference/image/functions/imagecolorexactalpha.xml:1.1 phpdoc-fr/reference/image/functions/imagecolorexactalpha.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecolorexactalpha.xml:1.1 Sun Apr 14 20:30:31 2002 +++ phpdoc-fr/reference/image/functions/imagecolorexactalpha.xml Thu May 29 06:25:39 2003 @@ -3,14 +3,14 @@ <!-- last change to 'imagecolorexactalpha' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorexactalpha"> <refnamediv> - <refname>ImageColorExactAlpha</refname> + <refname>imagecolorexactalpha</refname> <refpurpose>Retourne l'index d'une couleur avec son canal alpha</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorexactalpha</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> <methodparam><type>int</type><parameter>blue</parameter></methodparam> @@ -19,7 +19,7 @@ <para> <function>imagecolorexactalpha</function> retourne l'index de la couleur fournie au format <acronym>RGB</acronym> et son canal - alpha <parameter>alpha</parameter>, dans l'image <parameter>im</parameter>. + alpha <parameter>alpha</parameter>, dans l'image <parameter>image</parameter>. </para> <para> Si la couleur n'existe pas dans la palette de l'image, @@ -29,12 +29,6 @@ Voir aussi <function>imagecolorclosestalpha</function>. </para> - <note> - <para> - <function>imagecolorexactalpha</function> a &eacute;t&eacute; ajout&eacute;e en PHP 4.0.6 - et n&eacute;cessite GD 2.0.1. - </para> - </note> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagecolorresolve.xml diff -u phpdoc-fr/reference/image/functions/imagecolorresolve.xml:1.1 phpdoc-fr/reference/image/functions/imagecolorresolve.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecolorresolve.xml:1.1 Sun Apr 14 20:30:31 2002 +++ phpdoc-fr/reference/image/functions/imagecolorresolve.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecolorresolve' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorresolve"> <refnamediv> - <refname>ImageColorResolve</refname> + <refname>imagecolorresolve</refname> <refpurpose> Retourne l'index de la couleur donn&eacute;e, ou la plus proche possible. </refpurpose> @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorresolve</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> <methodparam><type>int</type><parameter>blue</parameter></methodparam> Index: phpdoc-fr/reference/image/functions/imagecolorresolvealpha.xml diff -u phpdoc-fr/reference/image/functions/imagecolorresolvealpha.xml:1.1 phpdoc-fr/reference/image/functions/imagecolorresolvealpha.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecolorresolvealpha.xml:1.1 Sun Apr 14 20:30:31 2002 +++ phpdoc-fr/reference/image/functions/imagecolorresolvealpha.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecolorresolvealpha' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorresolvealpha"> <refnamediv> - <refname>ImageColorResolveAlpha</refname> + <refname>imagecolorresolvealpha</refname> <refpurpose> Retourne un index de couleur ou son alternative la plus proche, y compris le canal alpha @@ -13,7 +13,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorresolvealpha</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> <methodparam><type>int</type><parameter>blue</parameter></methodparam> @@ -22,7 +22,7 @@ <para> <function>imagecolorresolvealpha</function> retourne toujours un index de couleur, disponible dans la palette de l'image - <parameter>im</parameter> : soit c'est la couleur exacte, + <parameter>image</parameter> : soit c'est la couleur exacte, soit c'est la meilleure approximation. </para> <para> Index: phpdoc-fr/reference/image/functions/imagecolorset.xml diff -u phpdoc-fr/reference/image/functions/imagecolorset.xml:1.2 phpdoc-fr/reference/image/functions/imagecolorset.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecolorset.xml:1.2 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagecolorset.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecolorset' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorset"> <refnamediv> - <refname>ImageColorSet</refname> + <refname>imagecolorset</refname> <refpurpose> Change la couleur dans une palette &agrave; l'index donn&eacute;. </refpurpose> @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>bool</type><methodname>imagecolorset</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>index</parameter></methodparam> <methodparam><type>int</type><parameter>red</parameter></methodparam> <methodparam><type>int</type><parameter>green</parameter></methodparam> Index: phpdoc-fr/reference/image/functions/imagecolorsforindex.xml diff -u phpdoc-fr/reference/image/functions/imagecolorsforindex.xml:1.2 phpdoc-fr/reference/image/functions/imagecolorsforindex.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecolorsforindex.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecolorsforindex.xml Thu May 29 06:25:39 2003 @@ -3,14 +3,14 @@ <!-- last change to 'imagecolorsforindex' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorsforindex"> <refnamediv> - <refname>ImageColorsForIndex</refname> + <refname>imagecolorsforindex</refname> <refpurpose>Retourne la couleur associ&eacute;e &agrave; un index</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>array</type><methodname>imagecolorsforindex</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>index</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/image/functions/imagecolorstotal.xml diff -u phpdoc-fr/reference/image/functions/imagecolorstotal.xml:1.2 phpdoc-fr/reference/image/functions/imagecolorstotal.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecolorstotal.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecolorstotal.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagecolorstotal' in en/ tree in rev 1.36 --> <refentry id="function.imagecolorstotal"> <refnamediv> - <refname>ImageColorsTotal</refname> + <refname>imagecolorstotal</refname> <refpurpose>Calcule le nombre de couleurs d'une palette</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolorstotal</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> </methodsynopsis> <para> <function>imagecolorstotal</function> retourne le nombre de couleurs - de la palette. + de la palette pour l'image <parameter>image</parameter>. </para> <para> Voir aussi Index: phpdoc-fr/reference/image/functions/imagecolortransparent.xml diff -u phpdoc-fr/reference/image/functions/imagecolortransparent.xml:1.2 phpdoc-fr/reference/image/functions/imagecolortransparent.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecolortransparent.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecolortransparent.xml Thu May 29 06:25:39 2003 @@ -3,22 +3,22 @@ <!-- last change to 'imagecolortransparent' in en/ tree in rev 1.36 --> <refentry id="function.imagecolortransparent"> <refnamediv> - <refname>ImageColorTransparent</refname> + <refname>imagecolortransparent</refname> <refpurpose>D&eacute;finit la couleur transparente</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagecolortransparent</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagecolortransparent</function> permet de choisir la couleur - transparente d'une image, et de lui donner la valeur de col. - <parameter>im</parameter> est un identifiant d'image, retourn&eacute; + transparente d'une image, et de lui donner la valeur de <parameter>color</parameter>. + <parameter>image</parameter> est un identifiant d'image, retourn&eacute; par <function>imagecreate</function> et - <parameter>col</parameter> est un identifiant de couleur + <parameter>color</parameter> est un identifiant de couleur retourn&eacute; par <function>imagecolorallocate</function>. </para> <para> Index: phpdoc-fr/reference/image/functions/imagecopy.xml diff -u phpdoc-fr/reference/image/functions/imagecopy.xml:1.1 phpdoc-fr/reference/image/functions/imagecopy.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecopy.xml:1.1 Sun Apr 14 20:30:33 2002 +++ phpdoc-fr/reference/image/functions/imagecopy.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecopy' in en/ tree in rev 1.36 --> <refentry id="function.imagecopy"> <refnamediv> - <refname>ImageCopy</refname> + <refname>imagecopy</refname> <refpurpose> Copie une partie d'une image </refpurpose> Index: phpdoc-fr/reference/image/functions/imagecopymerge.xml diff -u phpdoc-fr/reference/image/functions/imagecopymerge.xml:1.1 phpdoc-fr/reference/image/functions/imagecopymerge.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecopymerge.xml:1.1 Sun Apr 14 20:30:33 2002 +++ phpdoc-fr/reference/image/functions/imagecopymerge.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecopymerge' in en/ tree in rev 1.36 --> <refentry id="function.imagecopymerge"> <refnamediv> - <refname>ImageCopyMerge</refname> + <refname>imagecopymerge</refname> <refpurpose> Copie et fusionne une partie d'une image </refpurpose> Index: phpdoc-fr/reference/image/functions/imagecopymergegray.xml diff -u phpdoc-fr/reference/image/functions/imagecopymergegray.xml:1.1 phpdoc-fr/reference/image/functions/imagecopymergegray.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecopymergegray.xml:1.1 Sun Apr 14 20:30:33 2002 +++ phpdoc-fr/reference/image/functions/imagecopymergegray.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecopymergegray' in en/ tree in rev 1.36 --> <refentry id="function.imagecopymergegray"> <refnamediv> - <refname>ImageCopyMergeGray</refname> + <refname>imagecopymergegray</refname> <refpurpose> Copie et fusionne une partie d'une image en niveaux de gris </refpurpose> Index: phpdoc-fr/reference/image/functions/imagecopyresampled.xml diff -u phpdoc-fr/reference/image/functions/imagecopyresampled.xml:1.2 phpdoc-fr/reference/image/functions/imagecopyresampled.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecopyresampled.xml:1.2 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagecopyresampled.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecopyresampled' in en/ tree in rev 1.36 --> <refentry id="function.imagecopyresampled"> <refnamediv> - <refname>ImageCopyResampled</refname> + <refname>imagecopyresampled</refname> <refpurpose>Copie, redimensionne, r&eacute;&eacute;chantillonne une image</refpurpose> </refnamediv> <refsect1> @@ -12,14 +12,14 @@ <type>int</type><methodname>imagecopyresampled</methodname> <methodparam><type>resource</type><parameter>dst_im</parameter></methodparam> <methodparam><type>resource</type><parameter>src_im</parameter></methodparam> - <methodparam><type>int</type><parameter>dstX</parameter></methodparam> - <methodparam><type>int</type><parameter>dstY</parameter></methodparam> - <methodparam><type>int</type><parameter>srcX</parameter></methodparam> - <methodparam><type>int</type><parameter>srcY</parameter></methodparam> - <methodparam><type>int</type><parameter>dstW</parameter></methodparam> - <methodparam><type>int</type><parameter>dstH</parameter></methodparam> - <methodparam><type>int</type><parameter>srcW</parameter></methodparam> - <methodparam><type>int</type><parameter>srcH</parameter></methodparam> + <methodparam><type>int</type><parameter>dstx</parameter></methodparam> + <methodparam><type>int</type><parameter>dsty</parameter></methodparam> + <methodparam><type>int</type><parameter>srcx</parameter></methodparam> + <methodparam><type>int</type><parameter>srcy</parameter></methodparam> + <methodparam><type>int</type><parameter>dstw</parameter></methodparam> + <methodparam><type>int</type><parameter>dsth</parameter></methodparam> + <methodparam><type>int</type><parameter>srcw</parameter></methodparam> + <methodparam><type>int</type><parameter>srch</parameter></methodparam> </methodsynopsis> <para> <function>imagecopyresampled</function> copie une zone @@ -27,7 +27,7 @@ l'image <parameter>src_im</parameter>. Durant la copie, la zone est r&eacute;&eacute;chantillonn&eacute;e de mani&egrave;re &agrave; conserver la clart&eacute; de l'image durant une r&eacute;duction. - <parameter>Dst_im</parameter> est l'image de destination, + <parameter>dst_im</parameter> est l'image de destination, <parameter>src_im</parameter> est l'image source. Si les hauteurs et largeur des source et destination diff&egrave;rent, l'image copi&eacute;e sera &eacute;tir&eacute;e Index: phpdoc-fr/reference/image/functions/imagecopyresized.xml diff -u phpdoc-fr/reference/image/functions/imagecopyresized.xml:1.3 phpdoc-fr/reference/image/functions/imagecopyresized.xml:1.4 --- phpdoc-fr/reference/image/functions/imagecopyresized.xml:1.3 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagecopyresized.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecopyresized' in en/ tree in rev 1.36 --> <refentry id="function.imagecopyresized"> <refnamediv> - <refname>ImageCopyResized</refname> + <refname>imagecopyresized</refname> <refpurpose>Copie et redimensionne une partie d'une image</refpurpose> </refnamediv> <refsect1> @@ -12,14 +12,14 @@ <type>int</type><methodname>imagecopyresized</methodname> <methodparam><type>resource</type><parameter>dst_im</parameter></methodparam> <methodparam><type>resource</type><parameter>src_im</parameter></methodparam> - <methodparam><type>int</type><parameter>dstX</parameter></methodparam> - <methodparam><type>int</type><parameter>dstY</parameter></methodparam> - <methodparam><type>int</type><parameter>srcX</parameter></methodparam> - <methodparam><type>int</type><parameter>srcY</parameter></methodparam> - <methodparam><type>int</type><parameter>dstW</parameter></methodparam> - <methodparam><type>int</type><parameter>dstH</parameter></methodparam> - <methodparam><type>int</type><parameter>srcW</parameter></methodparam> - <methodparam><type>int</type><parameter>srcH</parameter></methodparam> + <methodparam><type>int</type><parameter>dstx</parameter></methodparam> + <methodparam><type>int</type><parameter>dsty</parameter></methodparam> + <methodparam><type>int</type><parameter>srcx</parameter></methodparam> + <methodparam><type>int</type><parameter>srcy</parameter></methodparam> + <methodparam><type>int</type><parameter>dstw</parameter></methodparam> + <methodparam><type>int</type><parameter>dsth</parameter></methodparam> + <methodparam><type>int</type><parameter>srcw</parameter></methodparam> + <methodparam><type>int</type><parameter>srch</parameter></methodparam> </methodsynopsis> <para> <function>imagecopyresized</function> copie une partie rectangulaire d'une image Index: phpdoc-fr/reference/image/functions/imagecreate.xml diff -u phpdoc-fr/reference/image/functions/imagecreate.xml:1.3 phpdoc-fr/reference/image/functions/imagecreate.xml:1.4 --- phpdoc-fr/reference/image/functions/imagecreate.xml:1.3 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagecreate.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecreate' in en/ tree in rev 1.36 --> <refentry id="function.imagecreate"> <refnamediv> - <refname>ImageCreate</refname> + <refname>imagecreate</refname> <refpurpose>Cr&eacute;e une nouvelle image &agrave; palette</refpurpose> </refnamediv> <refsect1> Index: phpdoc-fr/reference/image/functions/imagecreatefromgd2part.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefromgd2part.xml:1.1 phpdoc-fr/reference/image/functions/imagecreatefromgd2part.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecreatefromgd2part.xml:1.1 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefromgd2part.xml Thu May 29 06:25:39 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/image.xml, last change in rev 1.67 --> <refentry id="function.imagecreatefromgd2part"> <refnamediv> @@ -11,8 +11,8 @@ <methodsynopsis> <type>resource</type><methodname>imagecreatefromgd2part</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam><type>int</type><parameter>srcX</parameter></methodparam> - <methodparam><type>int</type><parameter>srcY</parameter></methodparam> + <methodparam><type>int</type><parameter>srcx</parameter></methodparam> + <methodparam><type>int</type><parameter>srcy</parameter></methodparam> <methodparam><type>int</type><parameter>width</parameter></methodparam> <methodparam><type>int</type><parameter>height</parameter></methodparam> </methodsynopsis> Index: phpdoc-fr/reference/image/functions/imagecreatefromgif.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefromgif.xml:1.2 phpdoc-fr/reference/image/functions/imagecreatefromgif.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecreatefromgif.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefromgif.xml Thu May 29 06:25:39 2003 @@ -30,20 +30,22 @@ (gracieusement offert par vic@zymsys.com ) </title> <programlisting role="php"> -&lt;?php -function loadgif($imgname){ - $im = @imagecreatefromgif($imgname); /* Tentative d'ouverture */ - if ($im == "") { /* &eacute;chec ? */ - $im = ImageCreate(150,30); /* Cr&eacute;e une image vide */ - $bgc = ImageColorAllocate($im,255,255,255); - $tc = ImageColorAllocate($im,0,0,0); - imagefilledrectangle($im,0,0,150,30,$bgc); - imagestring($im,1,5,5,"Erreur lors du chargement du fichier $imgname",$tc); - /* Affiche un message d'erreur */ - } - return $im; +<![CDATA[ +<?php +function LoadGif ($imgname) { + $im = @imagecreatefromgif ($imgname); /* Tentative d'ouverture */ + if (!$im) { /* Test d'&eacute;chec */ + $im = imagecreate (150, 30); /* Cr&eacute;ation d'une image vide */ + $bgc = imagecolorallocate ($im, 255, 255, 255); + $tc = imagecolorallocate ($im, 0, 0, 0); + imagefilledrectangle ($im, 0, 0, 150, 30, $bgc); + /* Affichage d'un message d'erreur */ + imagestring ($im, 1, 5, 5, "Erreur au chargement de l'image $imgname", $tc); + } + return $im; } -?&gt; +?> +]]> </programlisting> </example> <note> Index: phpdoc-fr/reference/image/functions/imagecreatefromjpeg.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefromjpeg.xml:1.2 phpdoc-fr/reference/image/functions/imagecreatefromjpeg.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecreatefromjpeg.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefromjpeg.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecreatefromjpeg' in en/ tree in rev 1.4 --> <refentry id="function.imagecreatefromjpeg"> <refnamediv> - <refname>ImageCreateFromJPEG</refname> + <refname>imagecreatefromjpeg</refname> <refpurpose> Cr&eacute;e une nouvelle image <acronym>JPEG</acronym> &agrave; partir d'un fichier ou d'une URL @@ -31,7 +31,8 @@ (gracieusement offert par vic@zymsys.com ) </title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php function loadjpeg($imgname) { $im = @imagecreatefromjpeg($imgname); /* Tentative d'ouverture */ if (!$im) { /* V&eacute;rification */ @@ -44,7 +45,8 @@ } return $im; } -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/image/functions/imagecreatefrompng.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefrompng.xml:1.2 phpdoc-fr/reference/image/functions/imagecreatefrompng.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecreatefrompng.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefrompng.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecreatefrompng' in en/ tree in rev 1.4 --> <refentry id="function.imagecreatefrompng"> <refnamediv> - <refname>ImageCreateFromPNG</refname> + <refname>imagecreatefrompng</refname> <refpurpose> Cr&eacute;e une nouvelle image <acronym>PNG</acronym> &agrave; partir d'un fichier ou d'une URL @@ -31,7 +31,8 @@ (gracieusement offert par vic@zymsys.com ) </title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php function LoadPNG($imgname) { $im = @imagecreatefrompng($imgname); /* Tentative d'ouverture */ if (!$im) { /* V&eacute;rification */ @@ -44,7 +45,8 @@ } return $im; } -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/image/functions/imagecreatefromstring.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefromstring.xml:1.1 phpdoc-fr/reference/image/functions/imagecreatefromstring.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecreatefromstring.xml:1.1 Sun Apr 14 20:30:35 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefromstring.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagecreatefromstring' in en/ tree in rev 1.31 --> <refentry id="function.imagecreatefromstring"> <refnamediv> - <refname>ImageCreateFromString</refname> + <refname>imagecreatefromstring</refname> <refpurpose>Cr&eacute;e une image &agrave; partir d'une cha&icirc;ne</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>imagecreatefromstring</methodname> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>imagecreatefromstring</methodname> + <methodparam><type>string</type><parameter>image</parameter></methodparam> + </methodsynopsis> <para> <function>imagecreatefromstring</function> retourne un identifiant - d'image repr&eacute;sentant la cha&icirc;ne <parameter>string</parameter>. + d'image repr&eacute;sentant la cha&icirc;ne <parameter>image</parameter>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagecreatefromwbmp.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefromwbmp.xml:1.2 phpdoc-fr/reference/image/functions/imagecreatefromwbmp.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecreatefromwbmp.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefromwbmp.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecreatefromwbmp' in en/ tree in rev 1.30 --> <refentry id="function.imagecreatefromwbmp"> <refnamediv> - <refname>ImageCreateFromWBMP</refname> + <refname>imagecreatefromwbmp</refname> <refpurpose>Cr&eacute;e une image depuis un fichier WBMP</refpurpose> </refnamediv> <refsect1> @@ -27,6 +27,8 @@ WBMP (gracieusement propos&eacute; par vic@zymsys.com) </title> <programlisting role="php"> +<![CDATA[ +<?php function loadwbmp($imgname) { $im = @imagecreatefromwbmp($imgname); /* Tentative d'ouverture */ if (!$im) { /* V&eacute;rification que cela s'est bien pass&eacute; */ @@ -39,6 +41,8 @@ } return $im; } +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/image/functions/imagecreatefromxbm.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefromxbm.xml:1.2 phpdoc-fr/reference/image/functions/imagecreatefromxbm.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecreatefromxbm.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefromxbm.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagecreatefromxbm' in en/ tree in rev 1.61 --> <refentry id="function.imagecreatefromxbm"> <refnamediv> - <refname>ImageCreateFromXBM</refname> + <refname>imagecreatefromxbm</refname> <refpurpose>Cr&eacute;e une image &agrave; partir d'un fichier XBM</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>int</type><methodname>imagecreatefromxbm</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> + <type>resource</type><methodname>imagecreatefromxbm</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> <para> <function>imagecreatefromxbm</function> retourne un identifiant - d'image repr&eacute;sentant l'image obtenue &agrave; partir du fichier + d'image repr&eacute;sentant l'image obtenue &agrave; partir du fichier XBM <parameter>filename</parameter>. </para> &tip.fopen-wrapper; Index: phpdoc-fr/reference/image/functions/imagecreatefromxpm.xml diff -u phpdoc-fr/reference/image/functions/imagecreatefromxpm.xml:1.2 phpdoc-fr/reference/image/functions/imagecreatefromxpm.xml:1.3 --- phpdoc-fr/reference/image/functions/imagecreatefromxpm.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagecreatefromxpm.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagecreatefromxpm' in en/ tree in rev 1.61 --> <refentry id="function.imagecreatefromxpm"> <refnamediv> - <refname>ImageCreateFromXPM</refname> + <refname>imagecreatefromxpm</refname> <refpurpose>Cr&eacute;e une image &agrave; partir d'un fichier XPM</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>int</type><methodname>imagecreatefromxpm</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> + <type>resource</type><methodname>imagecreatefromxpm</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> <para> <function>imagecreatefromxpm</function> retourne un identifiant - d'image repr&eacute;sentant l'image obtenue &agrave; partir du fichier + d'image repr&eacute;sentant l'image obtenue &agrave; partir du fichier XPM <parameter>filename</parameter>. </para> &tip.fopen-wrapper; Index: phpdoc-fr/reference/image/functions/imagecreatetruecolor.xml diff -u phpdoc-fr/reference/image/functions/imagecreatetruecolor.xml:1.1 phpdoc-fr/reference/image/functions/imagecreatetruecolor.xml:1.2 --- phpdoc-fr/reference/image/functions/imagecreatetruecolor.xml:1.1 Sun Apr 14 20:30:36 2002 +++ phpdoc-fr/reference/image/functions/imagecreatetruecolor.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagecreatetruecolor' in en/ tree in rev 1.2 --> <refentry id="function.imagecreatetruecolor"> <refnamediv> - <refname>ImageCreateTrueColor</refname> + <refname>imagecreatetruecolor</refname> <refpurpose>Cr&eacute;e une nouvelle image en vraies couleurs</refpurpose> </refnamediv> <refsect1> Index: phpdoc-fr/reference/image/functions/imagedashedline.xml diff -u phpdoc-fr/reference/image/functions/imagedashedline.xml:1.2 phpdoc-fr/reference/image/functions/imagedashedline.xml:1.3 --- phpdoc-fr/reference/image/functions/imagedashedline.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagedashedline.xml Thu May 29 06:25:39 2003 @@ -3,30 +3,24 @@ <!-- last change to 'imagedashedline' in en/ tree in rev 1.2 --> <refentry id="function.imagedashedline"> <refnamediv> - <refname>ImageDashedLine</refname> + <refname>imagedashedline</refname> <refpurpose>Dessine une ligne pointill&eacute;e</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagedashedline</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>x1</parameter></methodparam> <methodparam><type>int</type><parameter>y1</parameter></methodparam> <methodparam><type>int</type><parameter>x2</parameter></methodparam> <methodparam><type>int</type><parameter>y2</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> - <para> - <function>imagedashedline</function> dessine une ligne pointill&eacute;e - entre les points (<parameter>x1</parameter>,<parameter>y1</parameter>) - et (<parameter>x2</parameter>,<parameter>y2</parameter>) (le coin - sup&eacute;rieur droit est l'origine (0,0)) dans l'image - <parameter>im</parameter>, avec la couleur <parameter>col</parameter>. - </para> - <para> - Voir aussi - <function>imageline</function>. + <para> + <function>imagedashedline</function> est obsol&egrave;te. UTilisez plut&ocirc;t + une combinaison des fonctions <function>imagesetstyle</function> et + <function>imageline</function> &agrave; la place. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagedestroy.xml diff -u phpdoc-fr/reference/image/functions/imagedestroy.xml:1.2 phpdoc-fr/reference/image/functions/imagedestroy.xml:1.3 --- phpdoc-fr/reference/image/functions/imagedestroy.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagedestroy.xml Thu May 29 06:25:39 2003 @@ -3,19 +3,19 @@ <!-- last change to 'imagedestroy' in en/ tree in rev 1.2 --> <refentry id="function.imagedestroy"> <refnamediv> - <refname>ImageDestroy</refname> + <refname>imagedestroy</refname> <refpurpose>d&eacute;truit une image</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagedestroy</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> </methodsynopsis> <para> <function>imagedestroy</function> lib&egrave;re toute la m&eacute;moire - associ&eacute;e &agrave; l'image <parameter>im</parameter>. - <parameter>im</parameter> est un identifiant d'image valide retourn&eacute; + associ&eacute;e &agrave; l'image <parameter>image</parameter>. + <parameter>image</parameter> est un identifiant d'image valide retourn&eacute; par <function>imagecreate</function>. </para> </refsect1> Index: phpdoc-fr/reference/image/functions/imageellipse.xml diff -u phpdoc-fr/reference/image/functions/imageellipse.xml:1.1 phpdoc-fr/reference/image/functions/imageellipse.xml:1.2 --- phpdoc-fr/reference/image/functions/imageellipse.xml:1.1 Sun Apr 14 20:30:38 2002 +++ phpdoc-fr/reference/image/functions/imageellipse.xml Thu May 29 06:25:39 2003 @@ -3,25 +3,25 @@ <!-- last change to 'imageellipse' in en/ tree in rev 1.36 --> <refentry id="function.imageellipse"> <refnamediv> - <refname>ImageEllipse</refname> + <refname>imageellipse</refname> <refpurpose>Dessine une ellipse</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imageellipse</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>cx</parameter></methodparam> <methodparam><type>int</type><parameter>cy</parameter></methodparam> <methodparam><type>int</type><parameter>w</parameter></methodparam> <methodparam><type>int</type><parameter>h</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imageellipse</function> dessine une ellipse centr&eacute;e sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). Le coin sup&eacute;rieur gauche est aux coordonn&eacute;es (0,0). L'image - de dessin est <parameter>im</parameter>. <parameter>w</parameter> et + de dessin est <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> sp&eacute;cifient respectivement la largeur et la hauteur de l'ellipse. La couleur de dessin de l'ellipse est <parameter>color</parameter>. @@ -32,6 +32,10 @@ et n&eacute;cessite GD 2.0.1. </para> </note> + <para> + Voir aussi + <function>imagearc</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagefill.xml diff -u phpdoc-fr/reference/image/functions/imagefill.xml:1.2 phpdoc-fr/reference/image/functions/imagefill.xml:1.3 --- phpdoc-fr/reference/image/functions/imagefill.xml:1.2 Tue Dec 17 21:43:43 2002 +++ phpdoc-fr/reference/image/functions/imagefill.xml Thu May 29 06:25:39 2003 @@ -3,21 +3,21 @@ <!-- last change to 'imagefill' in en/ tree in rev 1.2 --> <refentry id="function.imagefill"> <refnamediv> - <refname>ImageFill</refname> + <refname>imagefill</refname> <refpurpose>Remplit</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagefill</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagefill</function> effectue un remplissage avec la couleur - <parameter>col</parameter>, dans l'image <parameter>im</parameter>, + <parameter>color</parameter>, dans l'image <parameter>image</parameter>, &agrave; partir du point de coordonn&eacute;es (<parameter>x</parameter>, <parameter>y</parameter>) (le coin sup&eacute;rieur gauche est l'origine (0,0)). Index: phpdoc-fr/reference/image/functions/imagefilledarc.xml diff -u phpdoc-fr/reference/image/functions/imagefilledarc.xml:1.1 phpdoc-fr/reference/image/functions/imagefilledarc.xml:1.2 --- phpdoc-fr/reference/image/functions/imagefilledarc.xml:1.1 Sun Apr 14 20:30:40 2002 +++ phpdoc-fr/reference/image/functions/imagefilledarc.xml Thu May 29 06:25:39 2003 @@ -10,38 +10,38 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagefilledarc</methodname> - <methodparam><type>int</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>cx</parameter></methodparam> <methodparam><type>int</type><parameter>cy</parameter></methodparam> <methodparam><type>int</type><parameter>w</parameter></methodparam> <methodparam><type>int</type><parameter>h</parameter></methodparam> <methodparam><type>int</type><parameter>s</parameter></methodparam> <methodparam><type>int</type><parameter>e</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> <methodparam><type>int</type><parameter>style</parameter></methodparam> </methodsynopsis> <para> <function>imagefilledarc</function> dessine une ellipse partielle, centr&eacute;e sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). - Le coin sup&eacute;rieur gauche est (0, 0), dans l'image <parameter>im</parameter>. + Le coin sup&eacute;rieur gauche est (0, 0), dans l'image <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> sp&eacute;cifient respectivement la largeur et la hauteur de l'ellipse, tandis que les points de d&eacute;but et de fin sont repr&eacute;sent&eacute;s par <parameter>s</parameter> et <parameter>e</parameter>, en degr&eacute;s. L'argument <parameter>style</parameter> est un champ de bits, combin&eacute; avec l'op&eacute;rateur OR : <orderedlist> - <listitem><simpara><literal>IMG_ARC_PIE</literal></simpara></listitem> - <listitem><simpara><literal>IMG_ARC_CHORD</literal></simpara></listitem> - <listitem><simpara><literal>IMG_ARC_NOFILL</literal></simpara></listitem> - <listitem><simpara><literal>IMG_ARC_EDGED</literal></simpara></listitem> + <listitem><simpara><constant>IMG_ARC_PIE</constant></simpara></listitem> + <listitem><simpara><constant>IMG_ARC_CHORD</constant></simpara></listitem> + <listitem><simpara><constant>IMG_ARC_NOFILL</constant></simpara></listitem> + <listitem><simpara><constant>IMG_ARC_EDGED</constant></simpara></listitem> </orderedlist> - <literal>IMG_ARC_PIE</literal> et <literal>IMG_ARC_CHORD</literal> sont - mutellemement exclusives; <literal>IMG_ARC_CHORD</literal> ne fait que + <constant>IMG_ARC_PIE</constant> et <constant>IMG_ARC_CHORD</constant> sont + mutellemement exclusives; <constant>IMG_ARC_CHORD</constant> ne fait que connecter les angles de d&eacute;but et de fin avec une ligne droite, tandis - que <literal>IMG_ARC_PIE</literal> produit une ligne courbe. - <literal>IMG_ARC_NOFILL</literal> indique que l'arc (ou corde) doit &ecirc;tre - dessin&eacute; mais pas rempli. <literal>IMG_ARC_EDGED</literal>, utilis&eacute; conjointement - avec <literal>IMG_ARC_NOFILL</literal>, indique que les angles de + que <constant>IMG_ARC_PIE</constant> produit une ligne courbe. + <constant>IMG_ARC_NOFILL</constant> indique que l'arc (ou corde) doit &ecirc;tre + dessin&eacute; mais pas rempli. <constant>IMG_ARC_EDGED</constant>, utilis&eacute; conjointement + avec <constant>IMG_ARC_NOFILL</constant>, indique que les angles de d&eacute;but et de fin doivent &ecirc;tre connect&eacute;s au centre. Cette fonction est recommand&eacute;e pour faire les graphiques de type camenbert. </para> Index: phpdoc-fr/reference/image/functions/imagefilledellipse.xml diff -u phpdoc-fr/reference/image/functions/imagefilledellipse.xml:1.1 phpdoc-fr/reference/image/functions/imagefilledellipse.xml:1.2 --- phpdoc-fr/reference/image/functions/imagefilledellipse.xml:1.1 Sun Apr 14 20:30:40 2002 +++ phpdoc-fr/reference/image/functions/imagefilledellipse.xml Thu May 29 06:25:39 2003 @@ -3,25 +3,25 @@ <!-- last change to 'imagefilledellipse' in en/ tree in rev 1.36 --> <refentry id="function.imagefilledellipse"> <refnamediv> - <refname>ImageFilledEllipse</refname> + <refname>imagefilledellipse</refname> <refpurpose>Dessine une ellipse pleine</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagefilledellipse</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>cx</parameter></methodparam> <methodparam><type>int</type><parameter>cy</parameter></methodparam> <methodparam><type>int</type><parameter>w</parameter></methodparam> <methodparam><type>int</type><parameter>h</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagefilledellipse</function> dessine une ellipse centr&eacute;e sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). Le coin sup&eacute;rieur gauche est aux coordonn&eacute;es (0,0). L'image - de dessin est <parameter>im</parameter>. <parameter>w</parameter> et + de dessin est <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> sp&eacute;cifient respectivement la largeur et la hauteur de l'ellipse. La couleur de remplissage de l'ellipse est <parameter>color</parameter>. @@ -32,6 +32,10 @@ et n&eacute;cessite GD 2.0.1. </para> </note> + <para> + Voir aussi + <function>imagefilledarc</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagefilledpolygon.xml diff -u phpdoc-fr/reference/image/functions/imagefilledpolygon.xml:1.2 phpdoc-fr/reference/image/functions/imagefilledpolygon.xml:1.3 --- phpdoc-fr/reference/image/functions/imagefilledpolygon.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagefilledpolygon.xml Thu May 29 06:25:39 2003 @@ -3,21 +3,21 @@ <!-- last change to 'imagefilledpolygon' in en/ tree in rev 1.2 --> <refentry id="function.imagefilledpolygon"> <refnamediv> - <refname>ImageFilledPolygon</refname> + <refname>imagefilledpolygon</refname> <refpurpose>Dessine un polygone rempli</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagefilledpolygon</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>array</type><parameter>points</parameter></methodparam> <methodparam><type>int</type><parameter>num_points</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagefilledpolygon</function> dessine un polygone rempli dans l'image - <parameter>im</parameter>. <parameter>points</parameter> est un tableau PHP qui + <parameter>image</parameter>. <parameter>points</parameter> est un tableau PHP qui contient les sommets des polygones sous la forme :. points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1, etc. <parameter>num_points</parameter> est le nombre total de sommets. Index: phpdoc-fr/reference/image/functions/imagefilledrectangle.xml diff -u phpdoc-fr/reference/image/functions/imagefilledrectangle.xml:1.2 phpdoc-fr/reference/image/functions/imagefilledrectangle.xml:1.3 --- phpdoc-fr/reference/image/functions/imagefilledrectangle.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagefilledrectangle.xml Thu May 29 06:25:39 2003 @@ -3,23 +3,23 @@ <!-- last change to 'imagefilledrectangle' in en/ tree in rev 1.2 --> <refentry id="function.imagefilledrectangle"> <refnamediv> - <refname>ImageFilledRectangle</refname> + <refname>imagefilledrectangle</refname> <refpurpose>Dessine un rectangle rempli</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagefilledrectangle</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>x1</parameter></methodparam> <methodparam><type>int</type><parameter>y1</parameter></methodparam> <methodparam><type>int</type><parameter>x2</parameter></methodparam> <methodparam><type>int</type><parameter>y2</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagefilledrectangle</function> dessine un rectangle de - couleur <parameter>col</parameter> dans l'image <parameter>im</parameter>, + couleur <parameter>color</parameter> dans l'image <parameter>image</parameter>, en commen&ccedil;ant par le sommet sup&eacute;rieur gauche (<parameter>x1</parameter>, <parameter>y1</parameter>) et finissant au sommet inf&eacute;rieur droit (<parameter>x2</parameter>, <parameter>y2</parameter>). Le coin sup&eacute;rieur Index: phpdoc-fr/reference/image/functions/imagefilltoborder.xml diff -u phpdoc-fr/reference/image/functions/imagefilltoborder.xml:1.2 phpdoc-fr/reference/image/functions/imagefilltoborder.xml:1.3 --- phpdoc-fr/reference/image/functions/imagefilltoborder.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagefilltoborder.xml Thu May 29 06:25:39 2003 @@ -3,22 +3,23 @@ <!-- last change to 'imagefilltoborder' in en/ tree in rev 1.2 --> <refentry id="function.imagefilltoborder"> <refnamediv> - <refname>ImageFillToBorder</refname> + <refname>imagefilltoborder</refname> <refpurpose>Remplit avec une r&eacute;gion avec une couleur sp&eacute;cifique</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagefilltoborder</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> <methodparam><type>int</type><parameter>border</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> - <function>imagefilltoborder</function> remplit avec la couleur <parameter>col</parameter> - toute la r&eacute;gion &agrave; l'int&eacute;rieur de la r&eacute;gion limit&eacute;e par la couleur + <function>imagefilltoborder</function> remplit avec la couleur + <parameter>color</parameter> toute la r&eacute;gion &agrave; + l'int&eacute;rieur de la r&eacute;gion limit&eacute;e par la couleur <parameter>border</parameter>. Le point de d&eacute;part est (<parameter>x</parameter>,<parameter>y</parameter>) (le coin sup&eacute;rieur gauche est l'origine (0,0)). Index: phpdoc-fr/reference/image/functions/imagefontheight.xml diff -u phpdoc-fr/reference/image/functions/imagefontheight.xml:1.2 phpdoc-fr/reference/image/functions/imagefontheight.xml:1.3 --- phpdoc-fr/reference/image/functions/imagefontheight.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagefontheight.xml Thu May 29 06:25:39 2003 @@ -3,15 +3,15 @@ <!-- last change to 'imagefontheight' in en/ tree in rev 1.2 --> <refentry id="function.imagefontheight"> <refnamediv> - <refname>ImageFontHeight</refname> + <refname>imagefontheight</refname> <refpurpose>Retourne la hauteur de la police</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagefontheight</methodname> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagefontheight</methodname> + <methodparam><type>int</type><parameter>font</parameter></methodparam> + </methodsynopsis> <para> <function>imagefontheight</function> retourne la hauteur de la police <parameter>font</parameter> en pixels. Index: phpdoc-fr/reference/image/functions/imagefontwidth.xml diff -u phpdoc-fr/reference/image/functions/imagefontwidth.xml:1.2 phpdoc-fr/reference/image/functions/imagefontwidth.xml:1.3 --- phpdoc-fr/reference/image/functions/imagefontwidth.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagefontwidth.xml Thu May 29 06:25:39 2003 @@ -3,15 +3,15 @@ <!-- last change to 'imagefontwidth' in en/ tree in rev 1.2 --> <refentry id="function.imagefontwidth"> <refnamediv> - <refname>ImageFontWidth</refname> + <refname>imagefontwidth</refname> <refpurpose>Retourne la largeur de la police</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagefontwidth</methodname> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagefontwidth</methodname> + <methodparam><type>int</type><parameter>font</parameter></methodparam> + </methodsynopsis> <para> <function>imagefontwidth</function> retourne la largeur de la police <parameter>font</parameter> en pixels. Index: phpdoc-fr/reference/image/functions/imagegammacorrect.xml diff -u phpdoc-fr/reference/image/functions/imagegammacorrect.xml:1.1 phpdoc-fr/reference/image/functions/imagegammacorrect.xml:1.2 --- phpdoc-fr/reference/image/functions/imagegammacorrect.xml:1.1 Sun Apr 14 20:30:41 2002 +++ phpdoc-fr/reference/image/functions/imagegammacorrect.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagegammacorrect' in en/ tree in rev 1.36 --> <refentry id="function.imagegammacorrect"> <refnamediv> - <refname>ImageGammaCorrect</refname> + <refname>imagegammacorrect</refname> <refpurpose> Applique une correction gamma &agrave; l'image </refpurpose> @@ -12,13 +12,13 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagegammacorrect</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>float</type><parameter>inputgamma</parameter></methodparam> <methodparam><type>float</type><parameter>outputgamma</parameter></methodparam> </methodsynopsis> <para> <function>imagegammacorrect</function> applique une correction gamma - &agrave; l'image GD <parameter>im</parameter>. Le facteur d'entr&eacute;e est + &agrave; l'image GD <parameter>image</parameter>. Le facteur d'entr&eacute;e est <parameter>inputgamma</parameter>, et le facteur de sortie est <parameter>outputgamma</parameter>. </para> Index: phpdoc-fr/reference/image/functions/imagegd2.xml diff -u phpdoc-fr/reference/image/functions/imagegd2.xml:1.1 phpdoc-fr/reference/image/functions/imagegd2.xml:1.2 --- phpdoc-fr/reference/image/functions/imagegd2.xml:1.1 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagegd2.xml Thu May 29 06:25:39 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/image.xml, last change in rev 1.67 --> <refentry id="function.imagegd2"> <refnamediv> @@ -12,10 +12,24 @@ <type>int</type><methodname>imagegd2</methodname> <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>chunk_size</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <para> - &warn.undocumented.func; + <function>imagegd2</function> g&eacute;n&egrave;re une image au format GD2, + vers le navigateur ou un fichier. </para> + <para> + Le param&egrave;tre optionnel <parameter>type</parameter> vaut soit + <literal>raw</literal> (brut) soit <literal>compressed</literal> + (compress&eacute;). + </para> + <note> + <para> + Les param&egrave;tres optionnels <parameter>chunk_size</parameter> et + <parameter>type</parameter> ont &eacute;t&eacute; ajout&eacute; en &php; 4.3.1. + </para> + </note> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagegif.xml diff -u phpdoc-fr/reference/image/functions/imagegif.xml:1.2 phpdoc-fr/reference/image/functions/imagegif.xml:1.3 --- phpdoc-fr/reference/image/functions/imagegif.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagegif.xml Thu May 29 06:25:39 2003 @@ -3,20 +3,20 @@ <!-- last change to 'imagegif' in en/ tree in rev 1.3 --> <refentry id="function.imagegif"> <refnamediv> - <refname>ImageGif</refname> + <refname>imagegif</refname> <refpurpose>Envoie une image GIF vers un navigateur ou un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>int</type><methodname>imagegif</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> + <type>int</type><methodname>imagegif</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> <para> <function>imagegif</function> cr&eacute;e un fichier image <acronym>GIF</acronym> avec le nom - <parameter>filename</parameter> d'apr&egrave;s l'image <parameter>im</parameter>. - L'argument <parameter>im</parameter> est un identifiant valide retourn&eacute; par la + <parameter>filename</parameter> d'apr&egrave;s l'image <parameter>image</parameter>. + L'argument <parameter>image</parameter> est un identifiant valide retourn&eacute; par la fonction <function>imagecreate</function>. </para> <para> @@ -43,7 +43,8 @@ par un code plus souple : <informalexample> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php if (function_exists("imagegif")) { header("Content-type: image/gif"); imagegif($im); @@ -61,50 +62,38 @@ } else { die("Pas de support graphique avec PHP sur ce serveur"); } -?&gt; +?> +]]> </programlisting> </informalexample> </para> </note> <note> <para> - En PHP 4, &agrave; partir de la version 4.0.2, vous pouvez utiliser la fonction - <function>imagetypes</function> &agrave; la place de - <function>function_exists</function> pour v&eacute;rifier que certains - formats d'images sont support&eacute;s : - <informalexample> - <programlisting role="php"> -&lt;?php - if (function_exists("imagegif")) { - header("Content-type: image/gif"); - imagegif($im); - } - elseif (function_exists("imagejpeg")) { - header("Content-type: image/jpeg"); - imagejpeg($im, "", 0.5); - } - elseif (function_exists("imagepng")) { - header("Content-type: image/png"); - imagepng($im); - } elseif (function_exists("imagewbmp")) { - header("Content-type: image/vnd.wap.wbmp"); - imagewbmp($im); - } else { - die("Pas de support graphique avec PHP sur ce serveur"); - } -?&gt; - </programlisting> - </informalexample> - </para> - </note> + Depuis les versions 3.0.18 et 4.0.2, vous pouvez utiliser la + fonction <function>imagetypes</function> au lieu de + <function>function_exists</function> pour v&eacute;rifier la + pr&eacute;sence des diff&eacute;rents formats d'images support&eacute;s. + <informalexample> + <programlisting role="php"> +<![CDATA[ +if (imagetypes() & IMG_GIF) { + header ("Content-type: image/gif"); + imagegif ($im); +} +elseif (imagetypes() & IMG_JPG) { + ... etc. +]]> + </programlisting> + </informalexample> + </para> + </note> </para> <para> Voir aussi - <function>imagejpeg</function>, + <function>imagepng</function>, <function>imagewbmp</function>, - <function>imagepng</function>, - <function>imageinterlace</function>, - <function>imagegif</function> et + <function>imagejpeg</function> et <function>imagetypes</function>. </para> </refsect1> Index: phpdoc-fr/reference/image/functions/imageinterlace.xml diff -u phpdoc-fr/reference/image/functions/imageinterlace.xml:1.2 phpdoc-fr/reference/image/functions/imageinterlace.xml:1.3 --- phpdoc-fr/reference/image/functions/imageinterlace.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imageinterlace.xml Thu May 29 06:25:39 2003 @@ -3,23 +3,24 @@ <!-- last change to 'imageinterlace' in en/ tree in rev 1.2 --> <refentry id="function.imageinterlace"> <refnamediv> - <refname>ImageInterlace</refname> + <refname>imageinterlace</refname> <refpurpose>Active ou d&eacute;sactive l'entrelacement</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imageinterlace</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>interlace</parameter></methodparam> </methodsynopsis> <para> <function>imageinterlace</function> active ou d&eacute;sactive le bit d'entrelacement. </para> <para> - Si l'entrelacement est &agrave; 1, l'image <parameter>im</parameter> sera + Si l'entrelacement est &agrave; 1, l'image <parameter>image</parameter> sera interlac&eacute;e, et sinon, elle ne le sera pas. Si le format d'affichage - de l'image est <acronym>JPEG</acronym>, l'image cr&eacute;&eacute;e sera un JPEG progressif. + de l'image est <acronym>JPEG</acronym>, l'image cr&eacute;&eacute;e sera + un JPEG progressif. </para> <para> <function>imageinterlace</function> retourne l'&eacute;tat courant Index: phpdoc-fr/reference/image/functions/imagejpeg.xml diff -u phpdoc-fr/reference/image/functions/imagejpeg.xml:1.1 phpdoc-fr/reference/image/functions/imagejpeg.xml:1.2 --- phpdoc-fr/reference/image/functions/imagejpeg.xml:1.1 Sun Apr 14 20:30:41 2002 +++ phpdoc-fr/reference/image/functions/imagejpeg.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagejpeg' in en/ tree in rev 1.30 --> <refentry id="function.imagejpeg"> <refnamediv> - <refname>ImageJPEG</refname> + <refname>imagejpeg</refname> <refpurpose> Envoie une image JPEG vers un navigateur ou un fichier. </refpurpose> @@ -12,15 +12,15 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagejpeg</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>quality</parameter></methodparam> </methodsynopsis> <para> - <function>imagejpeg</function> envoie l'image GD (<parameter>im</parameter>) + <function>imagejpeg</function> envoie l'image GD (<parameter>image</parameter>) au format <acronym>JPEG</acronym> sur la sortie standard (typiquement, le navigateur web), ou si <parameter>filename</parameter> est fourni, - l'envoie dans un fichier. <parameter>im</parameter> a &eacute;t&eacute; + l'envoie dans un fichier. <parameter>image</parameter> a &eacute;t&eacute; cr&eacute;&eacute; par <function>imagecreate</function>. </para> <para> Index: phpdoc-fr/reference/image/functions/imageline.xml diff -u phpdoc-fr/reference/image/functions/imageline.xml:1.2 phpdoc-fr/reference/image/functions/imageline.xml:1.3 --- phpdoc-fr/reference/image/functions/imageline.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imageline.xml Thu May 29 06:25:39 2003 @@ -3,26 +3,27 @@ <!-- last change to 'imageline' in en/ tree in rev 1.2 --> <refentry id="function.imageline"> <refnamediv> - <refname>ImageLine</refname> + <refname>imageline</refname> <refpurpose>Dessine une ligne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imageline</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>x1</parameter></methodparam> <methodparam><type>int</type><parameter>y1</parameter></methodparam> <methodparam><type>int</type><parameter>x2</parameter></methodparam> <methodparam><type>int</type><parameter>y2</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imageline</function> dessine une ligne depuis le point (<parameter>x1</parameter>,<parameter>y1</parameter>) jusqu'au point (<parameter>x2</parameter>,<parameter>y2</parameter>) - (le coin sup&eacute;rieur gauche est l'origine (0,0)) dans l'image <parameter>im</parameter> - et avec la couleur <parameter>col</parameter>. + (le coin sup&eacute;rieur gauche est l'origine (0,0)) dans l'image + <parameter>image</parameter> + et avec la couleur <parameter>color</parameter>. </para> <para> Voir aussi Index: phpdoc-fr/reference/image/functions/imageloadfont.xml diff -u phpdoc-fr/reference/image/functions/imageloadfont.xml:1.2 phpdoc-fr/reference/image/functions/imageloadfont.xml:1.3 --- phpdoc-fr/reference/image/functions/imageloadfont.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imageloadfont.xml Thu May 29 06:25:39 2003 @@ -3,15 +3,15 @@ <!-- last change to 'imageloadfont' in en/ tree in rev 1.2 --> <refentry id="function.imageloadfont"> <refnamediv> - <refname>ImageLoadFont</refname> + <refname>imageloadfont</refname> <refpurpose>Charge une nouvelle police</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>imageloadfont</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imageloadfont</methodname> + <methodparam><type>string</type><parameter>file</parameter></methodparam> + </methodsynopsis> <para> <function>imageloadfont</function> charge une nouvelle police utilisateur et retourne un identifiant sur cette police. Cet identifiant sera Index: phpdoc-fr/reference/image/functions/imagepalettecopy.xml diff -u phpdoc-fr/reference/image/functions/imagepalettecopy.xml:1.1 phpdoc-fr/reference/image/functions/imagepalettecopy.xml:1.2 --- phpdoc-fr/reference/image/functions/imagepalettecopy.xml:1.1 Sun Apr 14 20:30:42 2002 +++ phpdoc-fr/reference/image/functions/imagepalettecopy.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagepalettecopy' in en/ tree in rev 1.61 --> <refentry id="function.imagepalettecopy"> <refnamediv> - <refname>ImagePaletteCopy</refname> + <refname>imagepalettecopy</refname> <refpurpose>Copie la palette d'une image &agrave; l'autre</refpurpose> </refnamediv> <refsect1> Index: phpdoc-fr/reference/image/functions/imagepng.xml diff -u phpdoc-fr/reference/image/functions/imagepng.xml:1.1 phpdoc-fr/reference/image/functions/imagepng.xml:1.2 --- phpdoc-fr/reference/image/functions/imagepng.xml:1.1 Sun Apr 14 20:30:42 2002 +++ phpdoc-fr/reference/image/functions/imagepng.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagepng' in en/ tree in rev 1.7 --> <refentry id="function.imagepng"> <refnamediv> - <refname>ImagePNG</refname> + <refname>imagepng</refname> <refpurpose> Envoie une image PNG vers un navigateur ou un fichier. </refpurpose> @@ -12,22 +12,25 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagepng</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> - <function>imagepng</function> envoie l'image GD (<parameter>im</parameter>) + <function>imagepng</function> envoie l'image GD (<parameter>image</parameter>) au format <acronym>PNG</acronym> sur la sortie standard (typiquement, le navigateur web), ou si <parameter>filename</parameter> est fourni, l'envoie dans un fichier. - <informalexample> + <example> + <title>Exemple avec <function>imagepng</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $im = imagecreatefrompng("test.png"); imagepng($im); -?&gt; +?> +]]> </programlisting> - </informalexample> + </example> </para> <para> Le nom du fichier est optionnel, et dans ce cas, l'image sera transmise @@ -38,11 +41,9 @@ </para> <para> Voir aussi - <function>imagejpeg</function>, + <function>imagegif</function>, <function>imagewbmp</function>, - <function>imagegif</function>, - <function>imageinterlace</function>, - <function>imagegif</function> et + <function>imagejpeg</function> et <function>imagetypes</function>. </para> </refsect1> Index: phpdoc-fr/reference/image/functions/imagepolygon.xml diff -u phpdoc-fr/reference/image/functions/imagepolygon.xml:1.2 phpdoc-fr/reference/image/functions/imagepolygon.xml:1.3 --- phpdoc-fr/reference/image/functions/imagepolygon.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagepolygon.xml Thu May 29 06:25:39 2003 @@ -3,28 +3,29 @@ <!-- last change to 'imagepolygon' in en/ tree in rev 1.2 --> <refentry id="function.imagepolygon"> <refnamediv> - <refname>ImagePolygon</refname> + <refname>imagepolygon</refname> <refpurpose>Dessine un polygone</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagepolygon</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>array</type><parameter>points</parameter></methodparam> <methodparam><type>int</type><parameter>num_points</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagepolygon</function> dessine un polygone dans l'image - <parameter>im</parameter>. <parameter>points</parameter> est un tableau + <parameter>image</parameter>. <parameter>points</parameter> est un tableau PHP qui contient les sommets du polygone sous la forme : points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1, etc. num_points est le nombre de sommets. </para> <para> Voir aussi - <function>imagecreate</function>. + <function>imagecreate</function> et + <function>imagecreatetruecolor</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagepsbbox.xml diff -u phpdoc-fr/reference/image/functions/imagepsbbox.xml:1.3 phpdoc-fr/reference/image/functions/imagepsbbox.xml:1.4 --- phpdoc-fr/reference/image/functions/imagepsbbox.xml:1.3 Thu Nov 21 21:28:10 2002 +++ phpdoc-fr/reference/image/functions/imagepsbbox.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagepsbbox' in en/ tree in rev 1.2 --> <refentry id="function.imagepsbbox"> <refnamediv> - <refname>ImagePSBBox</refname> + <refname>imagepsbbox</refname> <refpurpose> Retourne le rectangle entourant un texte et dessin&eacute; avec une police PostScript Type1. @@ -11,15 +11,15 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>imagepsbbox</methodname> - <methodparam><type>string</type><parameter>text</parameter></methodparam> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - <methodparam><type>int</type><parameter>size</parameter></methodparam> - <methodparam><type>int</type><parameter>space</parameter></methodparam> - <methodparam><type>int</type><parameter>width</parameter></methodparam> - <methodparam><type>float</type><parameter>angle</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>array</type><methodname>imagepsbbox</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + <methodparam><type>int</type><parameter>font</parameter></methodparam> + <methodparam><type>int</type><parameter>size</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>space</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>tightness</parameter></methodparam> + <methodparam choice="opt"><type>float</type><parameter>angle</parameter></methodparam> + </methodsynopsis> <para> <parameter>size</parameter> est exprim&eacute; en pixels. </para> Index: phpdoc-fr/reference/image/functions/imagepscopyfont.xml diff -u phpdoc-fr/reference/image/functions/imagepscopyfont.xml:1.2 phpdoc-fr/reference/image/functions/imagepscopyfont.xml:1.3 --- phpdoc-fr/reference/image/functions/imagepscopyfont.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagepscopyfont.xml Thu May 29 06:25:39 2003 @@ -35,7 +35,7 @@ </para> <para> Voir aussi - <function>imageploadpsfont</function>. + <function>imagepsloadfont</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/image/functions/imagepsencodefont.xml diff -u phpdoc-fr/reference/image/functions/imagepsencodefont.xml:1.2 phpdoc-fr/reference/image/functions/imagepsencodefont.xml:1.3 --- phpdoc-fr/reference/image/functions/imagepsencodefont.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagepsencodefont.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagepsencodefont' in en/ tree in rev 1.2 --> <refentry id="function.imagepsencodefont"> <refnamediv> - <refname>ImagePSEncodeFont</refname> + <refname>imagepsencodefont</refname> <refpurpose> - Change le codage vectoriel d'un caract&egrave;re dans une police. + Change le codage vectoriel d'un caract&egrave;re dans une police </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagepsencodefont</methodname> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - <methodparam><type>string</type><parameter>encodingfile</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagepsencodefont</methodname> + <methodparam><type>int</type><parameter>font_index</parameter></methodparam> + <methodparam><type>string</type><parameter>encodingfile</parameter></methodparam> + </methodsynopsis> <para> <function>imagepsencodefont</function> charge le codage vectoriel d'un caract&egrave;re depuis un fichier et change le codage vectoriel de la Index: phpdoc-fr/reference/image/functions/imagepsextendfont.xml diff -u phpdoc-fr/reference/image/functions/imagepsextendfont.xml:1.2 phpdoc-fr/reference/image/functions/imagepsextendfont.xml:1.3 --- phpdoc-fr/reference/image/functions/imagepsextendfont.xml:1.2 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagepsextendfont.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagepsextendfont' in en/ tree in rev 1.7 --> <refentry id="function.imagepsextendfont"> <refnamediv> - <refname>ImagePsExtendFont</refname> + <refname>imagepsextendfont</refname> <refpurpose> Etend ou condense une police de caract&egrave;res </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>imagepsextendfont</methodname> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - <methodparam><type>float</type><parameter>extend</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>imagepsextendfont</methodname> + <methodparam><type>int</type><parameter>font_index</parameter></methodparam> + <methodparam><type>float</type><parameter>extend</parameter></methodparam> + </methodsynopsis> <para> <function>imagepsextendfont</function> &eacute;tend ou condense la police de caract&egrave;res <parameter>font</parameter>. Si la valeur de Index: phpdoc-fr/reference/image/functions/imagepsfreefont.xml diff -u phpdoc-fr/reference/image/functions/imagepsfreefont.xml:1.1 phpdoc-fr/reference/image/functions/imagepsfreefont.xml:1.2 --- phpdoc-fr/reference/image/functions/imagepsfreefont.xml:1.1 Sun Apr 14 20:30:43 2002 +++ phpdoc-fr/reference/image/functions/imagepsfreefont.xml Thu May 29 06:25:39 2003 @@ -3,17 +3,21 @@ <!-- last change to 'imagepsfreefont' in en/ tree in rev 1.2 --> <refentry id="function.imagepsfreefont"> <refnamediv> - <refname>ImagePSFreeFont</refname> + <refname>imagepsfreefont</refname> <refpurpose> - Lib&egrave;re la m&eacute;moire occup&eacute;e par une police PostScript Type 1. + Lib&egrave;re la m&eacute;moire occup&eacute;e par une police PostScript Type 1 </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>imagepsfreefont</methodname> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>void</type><methodname>imagepsfreefont</methodname> + <methodparam><type>int</type><parameter>fontindex</parameter></methodparam> + </methodsynopsis> + <para> + <function>imagepsfreefont</function> lib&egrave;re la m&eacute;moire + occup&eacute;e par une police PostScript Type 1. + </para> <para> Voir aussi <function>imagepsloadfont</function>. Index: phpdoc-fr/reference/image/functions/imagepsloadfont.xml diff -u phpdoc-fr/reference/image/functions/imagepsloadfont.xml:1.3 phpdoc-fr/reference/image/functions/imagepsloadfont.xml:1.4 --- phpdoc-fr/reference/image/functions/imagepsloadfont.xml:1.3 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagepsloadfont.xml Thu May 29 06:25:39 2003 @@ -3,35 +3,38 @@ <!-- last change to 'imagepsloadfont' in en/ tree in rev 1.7 --> <refentry id="function.imagepsloadfont"> <refnamediv> - <refname>ImagePSLoadFont</refname> + <refname>imagepsloadfont</refname> <refpurpose>Charge une police PostScript Type 1 depuis un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>imagepsloadfont</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagepsloadfont</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> <para> - Au cas o&ugrave; tout a bien march&eacute;, un index de police - va &ecirc;tre retourn&eacute;, et pourra &ecirc;tre utilis&eacute; - pour des op&eacute;rations ult&eacute;rieures. Sinon, la fonction + En cas de succ&egrave;s, <function>imagepsloadfont</function> retourne un index de police, + qui pourra &ecirc;tre utilis&eacute; + pour des op&eacute;rations ult&eacute;rieures. Sinon, + <function>imagepsloadfont</function> retourne &false;et affiche un message d&eacute;crivant - ce qui est erron&eacute;. + ce qui est arriv&eacute;. </para> <para> <programlisting role="php"> -&lt;?php - header("Content-type: image/jpeg"); - $im = imagecreate(350, 45); - $noir = imagecolorallocate($im, 0, 0, 0); - $Blanc = imagecolorallocate($im, 255, 255, 255); - $font = imagepsloadfont("bchbi.pfb"); - imagepstext($im, "Test ... Ca marche!", $font, 32, $white, $black, 32, 32); - imagepsfreefont($font); - imagejpeg($im, ""); - imagedestroy ($im); -?&lt; +<![CDATA[ +<?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"); // ou bien situez un de vos fichiers .pfb +imagepstext ($im, "Test ... Ca marche!", $font, 32, $white, $black, 32, 32); +imagepsfreefont ($font); +imagejpeg ($im, "", 100); //Meilleure qualit&eacute;... +imagedestroy ($im); +?> +]]> </programlisting> </para> <para> Index: phpdoc-fr/reference/image/functions/imagepsslantfont.xml diff -u phpdoc-fr/reference/image/functions/imagepsslantfont.xml:1.2 phpdoc-fr/reference/image/functions/imagepsslantfont.xml:1.3 --- phpdoc-fr/reference/image/functions/imagepsslantfont.xml:1.2 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagepsslantfont.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagepsslantfont' in en/ tree in rev 1.2 --> <refentry id="function.imagepsslantfont"> <refnamediv> - <refname>ImagePsSlantFont</refname> + <refname>imagepsslantfont</refname> <refpurpose> - Incline une police de caract&egrave;res + Incline une police de caract&egrave;res PostScript </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>imagepsslantfont</methodname> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - <methodparam><type>float</type><parameter>slant</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>imagepsslantfont</methodname> + <methodparam><type>int</type><parameter>font_index</parameter></methodparam> + <methodparam><type>float</type><parameter>slant</parameter></methodparam> + </methodsynopsis> <para> <function>imagepsslantfont</function> met en italique la police de caract&egrave;res <parameter>font</parameter> avec Index: phpdoc-fr/reference/image/functions/imagepstext.xml diff -u phpdoc-fr/reference/image/functions/imagepstext.xml:1.4 phpdoc-fr/reference/image/functions/imagepstext.xml:1.5 --- phpdoc-fr/reference/image/functions/imagepstext.xml:1.4 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagepstext.xml Thu May 29 06:25:39 2003 @@ -3,33 +3,26 @@ <!-- last change to 'imagepstext' in en/ tree in rev 1.2 --> <refentry id="function.imagepstext"> <refnamediv> - <refname>ImagePSText</refname> + <refname>imagepstext</refname> <refpurpose>Dessine un texte sur une image avec une police PostScript Type1</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>imagepstext</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>string</type><parameter>text</parameter></methodparam> - <methodparam><type>resource</type><parameter>font</parameter></methodparam> - <methodparam><type>int</type><parameter>size</parameter></methodparam> - <methodparam><type>int</type><parameter>foreground</parameter></methodparam> - <methodparam><type>int</type><parameter>background</parameter></methodparam> - <methodparam><type>int</type><parameter>x</parameter></methodparam> - <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - space</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - tightness</parameter></methodparam> - <methodparam choice="opt"><type>float</type><parameter> - angle</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - antialias_steps</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>size</parameter> est exprim&eacute; en pixels. - </para> + <methodsynopsis> + <type>array</type><methodname>imagepstext</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + <methodparam><type>int</type><parameter>font</parameter></methodparam> + <methodparam><type>int</type><parameter>size</parameter></methodparam> + <methodparam><type>int</type><parameter>foreground</parameter></methodparam> + <methodparam><type>int</type><parameter>background</parameter></methodparam> + <methodparam><type>int</type><parameter>x</parameter></methodparam> + <methodparam><type>int</type><parameter>y</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>space</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>tightness</parameter></methodparam> + <methodparam choice="opt"><type>float</type><parameter>angle</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>antialias_steps</parameter></methodparam> + </methodsynopsis> <para> <parameter>foreground</parameter> est la couleur dans laquelle le texte va &ecirc;tre dessin&eacute;. <parameter>background</parameter> est la couleur d'anti aliasing. @@ -57,6 +50,9 @@ </para> <para> <parameter>angle</parameter> est en degr&eacute;s. + </para> + <para> + <parameter>size</parameter> est exprim&eacute; en pixels. </para> <para> <parameter>antialias_steps</parameter> permet de contr&ocirc;ler le nombre de couleurs Index: phpdoc-fr/reference/image/functions/imagerectangle.xml diff -u phpdoc-fr/reference/image/functions/imagerectangle.xml:1.2 phpdoc-fr/reference/image/functions/imagerectangle.xml:1.3 --- phpdoc-fr/reference/image/functions/imagerectangle.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagerectangle.xml Thu May 29 06:25:39 2003 @@ -3,23 +3,23 @@ <!-- last change to 'imagerectangle' in en/ tree in rev 1.2 --> <refentry id="function.imagerectangle"> <refnamediv> - <refname>ImageRectangle</refname> + <refname>imagerectangle</refname> <refpurpose>Dessine un rectangle</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagerectangle</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>int</type><parameter>x1</parameter></methodparam> - <methodparam><type>int</type><parameter>y1</parameter></methodparam> - <methodparam><type>int</type><parameter>x2</parameter></methodparam> - <methodparam><type>int</type><parameter>y2</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagerectangle</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>int</type><parameter>x1</parameter></methodparam> + <methodparam><type>int</type><parameter>y1</parameter></methodparam> + <methodparam><type>int</type><parameter>x2</parameter></methodparam> + <methodparam><type>int</type><parameter>y2</parameter></methodparam> + <methodparam><type>int</type><parameter>col</parameter></methodparam> + </methodsynopsis> <para> <function>imagerectangle</function> dessine un rectangle dans la couleur - <parameter>col</parameter>, dans l'image <parameter>im</parameter>, et en + <parameter>color</parameter>, dans l'image <parameter>image</parameter>, et en commen&ccedil;ant au point sup&eacute;rieur gauche (<parameter>x1</parameter>, <parameter>y1</parameter>), et en finissant au point inf&eacute;rieur droit (<parameter>x2</parameter>,<parameter>y2</parameter>). Le coin sup&eacute;rieur Index: phpdoc-fr/reference/image/functions/imagesetbrush.xml diff -u phpdoc-fr/reference/image/functions/imagesetbrush.xml:1.1 phpdoc-fr/reference/image/functions/imagesetbrush.xml:1.2 --- phpdoc-fr/reference/image/functions/imagesetbrush.xml:1.1 Sun Apr 14 20:30:44 2002 +++ phpdoc-fr/reference/image/functions/imagesetbrush.xml Thu May 29 06:25:39 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagesetbrush</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>resource</type><parameter>brush</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/image/functions/imagesetpixel.xml diff -u phpdoc-fr/reference/image/functions/imagesetpixel.xml:1.2 phpdoc-fr/reference/image/functions/imagesetpixel.xml:1.3 --- phpdoc-fr/reference/image/functions/imagesetpixel.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagesetpixel.xml Thu May 29 06:25:39 2003 @@ -3,23 +3,23 @@ <!-- last change to 'imagesetpixel' in en/ tree in rev 1.2 --> <refentry id="function.imagesetpixel"> <refnamediv> - <refname>ImageSetPixel</refname> + <refname>imagesetpixel</refname> <refpurpose>Dessine un pixel</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>imagesetpixel</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>imagesetpixel</function> dessine un pixel au point (<parameter>x</parameter>,<parameter>y</parameter>) - (le coin sup&eacute;rieur gauche est l'origine (0,0)) dans l'image <parameter>im</parameter>, - et avec la couleur <parameter>col</parameter>. + (le coin sup&eacute;rieur gauche est l'origine (0,0)) dans l'image <parameter>image</parameter>, + et avec la couleur <parameter>color</parameter>. </para> <para> Voir aussi Index: phpdoc-fr/reference/image/functions/imagesetthickness.xml diff -u phpdoc-fr/reference/image/functions/imagesetthickness.xml:1.1 phpdoc-fr/reference/image/functions/imagesetthickness.xml:1.2 --- phpdoc-fr/reference/image/functions/imagesetthickness.xml:1.1 Sun Apr 14 20:30:44 2002 +++ phpdoc-fr/reference/image/functions/imagesetthickness.xml Thu May 29 06:25:39 2003 @@ -3,19 +3,19 @@ <!-- last change to 'imagesetthickness' in en/ tree in rev 1.34 --> <refentry id="function.imagesetthickness"> <refnamediv> - <refname>ImageSetThickness</refname> + <refname>imagesetthickness</refname> <refpurpose>Modifie l'&eacute;paisseur d'un trait</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>imagesetthickness</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>int</type><parameter>thickness</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>void</type><methodname>imagesetthickness</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>int</type><parameter>thickness</parameter></methodparam> + </methodsynopsis> <para> <function>imagesetthickness</function> modifie l'&eacute;paisseur - du trait des lignes de l'image <parameter>im</parameter>. Cette + du trait des lignes de l'image <parameter>image</parameter>. Cette &eacute;paisseur intervient dans les dessins de polygones, ellipses, cercles, rectangles, etc... <parameter>thickness</parameter> est en pixels. Index: phpdoc-fr/reference/image/functions/imagesettile.xml diff -u phpdoc-fr/reference/image/functions/imagesettile.xml:1.1 phpdoc-fr/reference/image/functions/imagesettile.xml:1.2 --- phpdoc-fr/reference/image/functions/imagesettile.xml:1.1 Sun Apr 14 20:30:45 2002 +++ phpdoc-fr/reference/image/functions/imagesettile.xml Thu May 29 06:25:39 2003 @@ -3,19 +3,19 @@ <!-- last change to 'imagesettile' in en/ tree in rev 1.34 --> <refentry id="function.imagesettile"> <refnamediv> - <refname>ImageSetTile</refname> + <refname>imagesettile</refname> <refpurpose>Modifie l'image utilis&eacute;e pour le carrelage</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagesettile</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>resource</type><parameter>tile</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagesettile</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>resource</type><parameter>tile</parameter></methodparam> + </methodsynopsis> <para> <function>imagesettile</function> remplace l'image de - carrelage courante par l'image <parameter>tile</parameter>, + pavement courante par l'image <parameter>tile</parameter>, &agrave; utiliser dans tous les remplissages (comme avec les fonctions <function>imagefill</function> et <function>imagefilledpolygon</function>) lors des remplissages avec l'option <literal>IMG_COLOR_TILED</literal>. @@ -34,11 +34,6 @@ l'option <literal>IMG_COLOR_TILED</literal> des fonctions <function>imagefill</function> et <function>imagefilledpolygon</function>, avant d'avoir cr&eacute;&eacute; une nouvelle brosse. - </para> - </note> - <note> - <para> - <function>imagesettile</function> a &eacute;t&eacute; ajout&eacute;e en PHP 4.0.6. </para> </note> </refsect1> Index: phpdoc-fr/reference/image/functions/imagestring.xml diff -u phpdoc-fr/reference/image/functions/imagestring.xml:1.2 phpdoc-fr/reference/image/functions/imagestring.xml:1.3 --- phpdoc-fr/reference/image/functions/imagestring.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagestring.xml Thu May 29 06:25:39 2003 @@ -3,25 +3,25 @@ <!-- last change to 'imagestring' in en/ tree in rev 1.2 --> <refentry id="function.imagestring"> <refnamediv> - <refname>ImageString</refname> + <refname>imagestring</refname> <refpurpose>Dessine une cha&icirc;ne horizontale</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagestring</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>int</type><parameter>font</parameter></methodparam> - <methodparam><type>int</type><parameter>x</parameter></methodparam> - <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam><type>string</type><parameter>s</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagestring</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>int</type><parameter>font</parameter></methodparam> + <methodparam><type>int</type><parameter>x</parameter></methodparam> + <methodparam><type>int</type><parameter>y</parameter></methodparam> + <methodparam><type>string</type><parameter>s</parameter></methodparam> + <methodparam><type>int</type><parameter>col</parameter></methodparam> + </methodsynopsis> <para> <function>imagestring</function> dessine une la cha&icirc;ne sur une ligne - horizontale, dans l'image <parameter>im</parameter>, aux coordonn&eacute;es + horizontale, dans l'image <parameter>image</parameter>, aux coordonn&eacute;es (<parameter>x</parameter>,<parameter>y</parameter>) (le coin sup&eacute;rieur - gauche est l'origine (0,0)) dans la couleur <parameter>col</parameter>. + gauche est l'origine (0,0)) dans la couleur <parameter>color</parameter>. Si l'argument de police vaut 1, 2, 3, 4 ou 5, une des polices par d&eacute;faut sera utilis&eacute;e). </para> Index: phpdoc-fr/reference/image/functions/imagestringup.xml diff -u phpdoc-fr/reference/image/functions/imagestringup.xml:1.2 phpdoc-fr/reference/image/functions/imagestringup.xml:1.3 --- phpdoc-fr/reference/image/functions/imagestringup.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagestringup.xml Thu May 29 06:25:39 2003 @@ -3,25 +3,25 @@ <!-- last change to 'imagestringup' in en/ tree in rev 1.2 --> <refentry id="function.imagestringup"> <refnamediv> - <refname>ImageStringUp</refname> + <refname>imagestringup</refname> <refpurpose>Dessine une cha&icirc;ne verticale</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagestringup</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam><type>int</type><parameter>font</parameter></methodparam> - <methodparam><type>int</type><parameter>x</parameter></methodparam> - <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam><type>string</type><parameter>s</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagestringup</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>int</type><parameter>font</parameter></methodparam> + <methodparam><type>int</type><parameter>x</parameter></methodparam> + <methodparam><type>int</type><parameter>y</parameter></methodparam> + <methodparam><type>string</type><parameter>s</parameter></methodparam> + <methodparam><type>int</type><parameter>col</parameter></methodparam> + </methodsynopsis> <para> <function>imagestringup</function> dessine une cha&icirc;ne sur une ligne - verticale dans l'image <parameter>im</parameter> aux coordonn&eacute;es + verticale dans l'image <parameter>image</parameter> aux coordonn&eacute;es (<parameter>x</parameter>, <parameter>y</parameter>) (l'origine est le coin - sup&eacute;rieur gauche (0,0)) dans la couleur <parameter>col</parameter>. + sup&eacute;rieur gauche (0,0)) dans la couleur <parameter>color</parameter>. Si la police utilis&eacute;e est 1, 2, 3, 4 ou 5, une police par d&eacute;faut sera utilis&eacute;e. </para> Index: phpdoc-fr/reference/image/functions/imagesx.xml diff -u phpdoc-fr/reference/image/functions/imagesx.xml:1.2 phpdoc-fr/reference/image/functions/imagesx.xml:1.3 --- phpdoc-fr/reference/image/functions/imagesx.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagesx.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagesx' in en/ tree in rev 1.2 --> <refentry id="function.imagesx"> <refnamediv> - <refname>ImageSX</refname> + <refname>imagesx</refname> <refpurpose>Retourne la largeur d'une image</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagesx</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagesx</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + </methodsynopsis> <para> <function>imagesx</function> retourne la largeur de l'image r&eacute;f&eacute;renc&eacute;e par - <parameter>im</parameter>. + <parameter>image</parameter>. </para> <para> Voir aussi Index: phpdoc-fr/reference/image/functions/imagesy.xml diff -u phpdoc-fr/reference/image/functions/imagesy.xml:1.2 phpdoc-fr/reference/image/functions/imagesy.xml:1.3 --- phpdoc-fr/reference/image/functions/imagesy.xml:1.2 Tue Dec 17 21:43:44 2002 +++ phpdoc-fr/reference/image/functions/imagesy.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,18 @@ <!-- last change to 'imagesy' in en/ tree in rev 1.2 --> <refentry id="function.imagesy"> <refnamediv> - <refname>ImageSY</refname> + <refname>imagesy</refname> <refpurpose>Retourne la hauteur de l'image</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagesy</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>imagesy</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + </methodsynopsis> <para> <function>imagesy</function> retourne la hauteur de l'image - r&eacute;f&eacute;renc&eacute;e par <parameter>im</parameter>. + r&eacute;f&eacute;renc&eacute;e par <parameter>image</parameter>. </para> <para> Voir aussi Index: phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml diff -u phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml:1.3 phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml:1.4 --- phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml:1.3 Wed Jan 22 07:07:25 2003 +++ phpdoc-fr/reference/image/functions/imagetruecolortopalette.xml Thu May 29 06:25:39 2003 @@ -3,20 +3,20 @@ <!-- last change to 'imagetruecolortopalette' in en/ tree in rev 1.34 --> <refentry id="function.imagetruecolortopalette"> <refnamediv> - <refname>ImageTrueColorToPalette</refname> + <refname>imagetruecolortopalette</refname> <refpurpose>Convertit une image en vraies couleurs en image &agrave; palette</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>imagetruecolortopalette</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>bool</type><parameter>dither</parameter></methodparam> <methodparam><type>int</type><parameter>ncolors</parameter></methodparam> </methodsynopsis> <para> <function>imagetruecolortopalette</function> convertit l'image - en vraies couleurs <parameter>im</parameter> en image &agrave; palette. + en vraies couleurs <parameter>image</parameter> en image &agrave; palette. Le code de cette fonction est directement tir&eacute; de la librairie du "Independent JPEG Group", qui est tout simplement g&eacute;nial. Le code a &eacute;t&eacute; modifi&eacute; pour pr&eacute;server l'essentiel du canal alph dans la nouvelle Index: phpdoc-fr/reference/image/functions/imagettfbbox.xml diff -u phpdoc-fr/reference/image/functions/imagettfbbox.xml:1.1 phpdoc-fr/reference/image/functions/imagettfbbox.xml:1.2 --- phpdoc-fr/reference/image/functions/imagettfbbox.xml:1.1 Sun Apr 14 20:30:46 2002 +++ phpdoc-fr/reference/image/functions/imagettfbbox.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagettfbbox' in en/ tree in rev 1.2 --> <refentry id="function.imagettfbbox"> <refnamediv> - <refname>ImageTTFBBox</refname> + <refname>imagettfbbox</refname> <refpurpose> Retourne le rectangle entourant un texte et dessin&eacute; avec une police TrueType. </refpurpose> Index: phpdoc-fr/reference/image/functions/imagettftext.xml diff -u phpdoc-fr/reference/image/functions/imagettftext.xml:1.5 phpdoc-fr/reference/image/functions/imagettftext.xml:1.6 --- phpdoc-fr/reference/image/functions/imagettftext.xml:1.5 Sat Feb 1 04:58:46 2003 +++ phpdoc-fr/reference/image/functions/imagettftext.xml Thu May 29 06:25:39 2003 @@ -3,28 +3,28 @@ <!-- last change to 'imagettftext' in en/ tree in rev 1.2 --> <refentry id="function.imagettftext"> <refnamediv> - <refname>ImageTTFText</refname> + <refname>imagettftext</refname> <refpurpose>Dessine un texte avec une police TrueType</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>array</type><methodname>imagettftext</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> <methodparam><type>int</type><parameter>size</parameter></methodparam> <methodparam><type>int</type><parameter>angle</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> <methodparam><type>string</type><parameter>fontfile</parameter></methodparam> <methodparam><type>string</type><parameter>text</parameter></methodparam> </methodsynopsis> <para> <function>imagettftext</function> dessine la cha&icirc;ne <parameter>text</parameter> - dans l'image <parameter>im</parameter>, en commen&ccedil;ant aux coordonn&eacute;es + dans l'image <parameter>image</parameter>, en commen&ccedil;ant aux coordonn&eacute;es (<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 + couleur <parameter>color</parameter>, en utilisant la police TrueType identifi&eacute;e par <parameter>fontfile</parameter>. Suivant la version de GD dont vous disposez, lorsque le param&egrave;tre <parameter>fontfile</parameter> ne commence pas par un slash '/', l'extension '.ttf' sera ajout&eacute;e au nom du fichier et la @@ -52,7 +52,7 @@ pour g&eacute;n&eacute;rer des caract&egrave;res au-del&agrave; de 255. </para> <para> - <parameter>col</parameter> est l'index de la couleur dans la palette. Utiliser + <parameter>color</parameter> est l'index de la couleur dans la palette. Utiliser des index n&eacute;gatifs, revient &agrave; supprimer l'anti-aliasing. </para> <para> @@ -78,7 +78,7 @@ // Remplacez path par votre chemin d'acc&egrave;s aux polices imagettftext($im, 20, 0, 10, 20, $white, "/path/arial.ttf", - "Test en cours... Omega: &amp;#937;"); + "Test en cours... Omega: &#937;"); imagejpeg($im); imagedestroy($im); ?> Index: phpdoc-fr/reference/image/functions/imagetypes.xml diff -u phpdoc-fr/reference/image/functions/imagetypes.xml:1.2 phpdoc-fr/reference/image/functions/imagetypes.xml:1.3 --- phpdoc-fr/reference/image/functions/imagetypes.xml:1.2 Wed May 28 20:43:13 2003 +++ phpdoc-fr/reference/image/functions/imagetypes.xml Thu May 29 06:25:39 2003 @@ -3,7 +3,7 @@ <!-- last change to 'imagetypes' in en/ tree in rev 1.61 --> <refentry id="function.imagetypes"> <refnamediv> - <refname>ImageTypes</refname> + <refname>imagetypes</refname> <refpurpose> Retourne les types d'images support&eacute;s par la version courante de PHP @@ -18,17 +18,20 @@ <para> <function>imagetypes</function> retourne un champ de bits correspondant aux formats d'images support&eacute;s par la version de GD - utilis&eacute;e. Les valeurs suivantes sont valables : <literal>IMG_GIF</literal> | - <literal>IMG_JPG</literal> | <literal>IMG_PNG</literal> | <literal>IMG_WBMP</literal>. Pour vous assurer du support <acronym>PNG</acronym>, + utilis&eacute;e. Les valeurs suivantes sont valables : <constant>IMG_GIF</constant> | + <constant>IMG_JPG</constant> | <constant>IMG_PNG</constant> | + <constant>IMG_WBMP</constant>. Pour vous assurer du support <acronym>PNG</acronym>, faites ceci : <example> - <title>Exemple avec ImageTypes</title> + <title>Exemple avec <function>imagetypes</function></title> <programlisting role="php"> -&lt;?php - if (imagetypes() &amp; IMG_PNG) { +<![CDATA[ +<?php +if (imagetypes() & IMG_PNG) { echo "Le type PNG est support&eacute;"; - } -?&gt; +} +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/image/functions/imagewbmp.xml diff -u phpdoc-fr/reference/image/functions/imagewbmp.xml:1.2 phpdoc-fr/reference/image/functions/imagewbmp.xml:1.3 --- phpdoc-fr/reference/image/functions/imagewbmp.xml:1.2 Wed May 28 20:43:13 2003 +++ phpdoc-fr/reference/image/functions/imagewbmp.xml Thu May 29 06:25:39 2003 @@ -3,21 +3,21 @@ <!-- last change to 'imagewbmp' in en/ tree in rev 1.2 --> <refentry id="function.imagewbmp"> <refnamediv> - <refname>ImageWBMP</refname> + <refname>imagewbmp</refname> <refpurpose>Affiche une image WBMP</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>imagewbmp</methodname> - <methodparam><type>resource</type><parameter>im</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> + <methodsynopsis> + <type>int</type><methodname>imagewbmp</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>foreground</parameter></methodparam> - </methodsynopsis> + </methodsynopsis> <para> <function>imagewbmp</function> cr&eacute;e l'image <acronym>WBMP</acronym> dans le fichier <parameter>filename</parameter>, &agrave; partir de l'image - <parameter>im</parameter>. Le param&egrave;tre <parameter>im</parameter> + <parameter>image</parameter>. Le param&egrave;tre <parameter>image</parameter> a &eacute;t&eacute; cr&eacute;&eacute; avec la fonction <function>imagecreate</function>. </para> <para> Index: phpdoc-fr/reference/image/functions/jpeg2wbmp.xml diff -u phpdoc-fr/reference/image/functions/jpeg2wbmp.xml:1.1 phpdoc-fr/reference/image/functions/jpeg2wbmp.xml:1.2 --- phpdoc-fr/reference/image/functions/jpeg2wbmp.xml:1.1 Sun Apr 14 20:30:47 2002 +++ phpdoc-fr/reference/image/functions/jpeg2wbmp.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,19 @@ <!-- last change to 'jpeg2wbmp' in en/ tree in rev 1.61 --> <refentry id="function.jpeg2wbmp"> <refnamediv> - <refname>JPEG2WBMP</refname> + <refname>jpeg2wbmp</refname> <refpurpose>Convertit une image JPEG en image WBMP</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>jpeg2wbmp</methodname> - <methodparam><type>string</type><parameter>jpegname</parameter></methodparam> - <methodparam><type>string</type><parameter>wbmpname</parameter></methodparam> - <methodparam><type>int</type><parameter>d_height</parameter></methodparam> - <methodparam><type>int</type><parameter>d_width</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>jpeg2wbmp</methodname> + <methodparam><type>string</type><parameter>jpegname</parameter></methodparam> + <methodparam><type>string</type><parameter>wbmpname</parameter></methodparam> + <methodparam><type>int</type><parameter>d_height</parameter></methodparam> + <methodparam><type>int</type><parameter>d_width</parameter></methodparam> + <methodparam><type>int</type><parameter>threshold</parameter></methodparam> + </methodsynopsis> <para> <function>jpeg2wbmp</function> convertit l'image JPEG du fichier <parameter>jpegname</parameter> au format WBMP, et la sauve dans Index: phpdoc-fr/reference/image/functions/png2wbmp.xml diff -u phpdoc-fr/reference/image/functions/png2wbmp.xml:1.1 phpdoc-fr/reference/image/functions/png2wbmp.xml:1.2 --- phpdoc-fr/reference/image/functions/png2wbmp.xml:1.1 Sun Apr 14 20:30:47 2002 +++ phpdoc-fr/reference/image/functions/png2wbmp.xml Thu May 29 06:25:39 2003 @@ -3,18 +3,19 @@ <!-- last change to 'png2wbmp' in en/ tree in rev 1.13 --> <refentry id="function.png2wbmp"> <refnamediv> - <refname>PNG2WBMP</refname> + <refname>png2wbmp</refname> <refpurpose>Convertit une image PNG en image WBMP</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>png2wbmp</methodname> - <methodparam><type>string</type><parameter>pngname</parameter></methodparam> - <methodparam><type>string</type><parameter>wbmpname</parameter></methodparam> - <methodparam><type>int</type><parameter>d_height</parameter></methodparam> - <methodparam><type>int</type><parameter>d_width</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>png2wbmp</methodname> + <methodparam><type>string</type><parameter>pngname</parameter></methodparam> + <methodparam><type>string</type><parameter>wbmpname</parameter></methodparam> + <methodparam><type>int</type><parameter>d_height</parameter></methodparam> + <methodparam><type>int</type><parameter>d_width</parameter></methodparam> + <methodparam><type>int</type><parameter>threshold</parameter></methodparam> + </methodsynopsis> <para> <function>png2wbmp</function> convertit l'image PNG du fichier <parameter>pngname</parameter> au format WBMP, et la sauve dans Index: phpdoc-fr/reference/image/functions/read-exif-data.xml diff -u phpdoc-fr/reference/image/functions/read-exif-data.xml:1.2 phpdoc-fr/reference/image/functions/read-exif-data.xml:1.3 --- phpdoc-fr/reference/image/functions/read-exif-data.xml:1.2 Wed Jan 22 07:07:26 2003 +++ phpdoc-fr/reference/image/functions/read-exif-data.xml Thu May 29 06:25:39 2003 @@ -1,80 +1,19 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./fr/functions/image.xml, last change in rev 1.24 --> <!-- last change to 'read-exif-data' in en/ tree in rev 1.78 --> - <refentry id="function.read-exif-data"> - <refnamediv> - <refname>read_exif_data</refname> - <refpurpose>Lit les en-t&ecirc;tes EXIF d'une image JPEG</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>read_exif_data</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - <function>read_exif_data</function> lit les en-t&ecirc;tes EXIF de - l'image <acronym>JPEG</acronym> nomm&eacute;e <parameter>filename</parameter>. - Elle retourne un tableau associatif o&ugrave; les index sont les noms - d'en-t&ecirc;tes EXIF, et les valeurs sont leur valeur - associ&eacute;e. Les en-t&ecirc;tes EXIF sont souvent disponibles - dans les images g&eacute;n&eacute;r&eacute;es par les appareils - photos num&eacute;riques, mais chaque constructeur marque ses images d'une - mani&egrave;re qui lui est propre : il est impossible de savoir - quelles en-t&ecirc;tes seront pr&eacute;sents. - <example> - <title>Exemple avec <function>read_exif_data</function></title> - <programlisting role="php"> -&lt;?php - $exif = read_exif_data('p0001807.jpg'); - while(list($k,$v)=each($exif)) { - echo "$k: $v&lt;br&gt;\n"; - } -?&gt; - </programlisting> - <simpara> - Cet exemple va afficher : - </simpara> - <literallayout> - <computeroutput> -FileName: p0001807.jpg -FileDateTime: 929353056 -FileSize: 378599 -CameraMake: Eastman Kodak Company -CameraModel: KODAK DC265 ZOOM DIGITAL CAMERA (V01.00) -DateTime: 1999:06:14 01:37:36 -Height: 1024 -Width: 1536 -IsColor: 1 -FlashUsed: 0 -FocalLength: 8.0mm -RawFocalLength: 8 -ExposureTime: 0.004 s (1/250) -RawExposureTime: 0.0040000001899898 -ApertureFNumber: f/ 9.5 -RawApertureFNumber: 9.5100002288818 -FocusDistance: 16.66m -RawFocusDistance: 16.659999847412 -Orientation: 1 -ExifVersion: 0200 - </computeroutput> - </literallayout> - </example> - </para> - <para> - <note> - <simpara> - <function>read_exif_data</function> n'est disponible que sous PHP 4 , - compil&eacute; avec - <option role="configure">--enable-exif</option>. - </simpara> - <simpara> - <function>read_exif_data</function> ne requiert pas la librairie GD. - </simpara> - </note> - </para> - </refsect1> - </refentry> + <refentry id="function.read-exif-data"> + <refnamediv> + <refname>read_exif_data</refname> + <refpurpose>Alias de <function>exif_read_data</function></refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <para> + <function>read_exif_data</function> est un &alias; de + <function>exif_read_data</function>. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.fr (#444) next »