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: | Damien Seguy | 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ù DIR est le dossier d'installation de GD. Il est recommandé d'utiliser la version de GD qui est distribué 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ée. </para> <para> Augmentez les possibilités des GD de gé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 élé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 été ajoutée en PHP 4.3. L'index 3 contient la chaîne à placer dans les balises <acronym>HTML</acronym> : <literal>"height=xxx width=xxx"</literal>. <example> <title>Exemple avec <function>getimagesize</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $size = getimagesize("img/flag.jpg"); -?> -<IMG SRC="img/flag.jpg" -<?php +?> +<IMG SRC="img/flag.jpg" +<?php echo $size[3]; -?>> +?>> +]]> </programlisting> </example> </para> @@ -51,9 +67,11 @@ <example> <title><function>getimagesize</function> avec une URL</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $size = getimagesize("http://www.php.net/gifs/logo.gif"); -?> +?> +]]> </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ésent pour tous les types d'images. + Cependant, la présence de ces valeurs peut mener à la confusion. Par exemple, + une image <acronym>GIF</acronym> utilise toujours trois canaux par pixel, + mais le nombre de bits par pixel ne peut être calculé dans le cas + d'une image animé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 être capable de + déterminer correctement la taille de l'image. <function>getimagesize</function> + retourne alors zéro comme taille de hauteur et largeur. + </para> <para> + Depuis PHP 4.3, <function>getimagesize</function> retourne aussi un paramètre + additionnel, <literal>mime</literal>, qui correspond au type MIME d'une image. + Cette information peut être utilisée pour envoyer l'entê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ès à <parameter>filename</parameter> est impossible, ou si ce n'est pas une image valide, <function>getimagesize</function> retournera <literal>NULL</literal> et générera une alerte. @@ -81,23 +136,33 @@ <example> <title><function>getimagesize</function> qui retourne IPTC</title> <programlisting role="php"> -<?php - $size = getimagesize("testimg.jpg",&$info); +<![CDATA[ +<?php + $size = getimagesize("testimg.jpg",&$info); if (isset($info["APP13"])) { $iptc = iptcparse($info["APP13"]); var_dump($iptc); } -?> +?> +]]> </programlisting> </example> <note> <simpara> <function>getimagesize</function> ne requiert pas la bibliothèque GD. </simpara> - </note> - <note> <simpara> Le support URL a été ajouté 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 été ajouté 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ée une image <acronym>WBMP</acronym> - à partir de l'image <parameter>im</parameter>. Si le paramètre + à partir de l'image <parameter>image</parameter>. Si le paramètre <parameter>filename</parameter> est fourni, l'image sera créée dans ce fichier, et sinon, elle sera envoyée au navigateur. - <parameter>im</parameter> est une image valide, créée avec la + <parameter>image</parameter> est une image valide, créé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ée sur <parameter>cx</parameter>, <parameter>cy</parameter> (le coin en haut à gauche est l'origine (0,0)) dans l'image référencée par - <parameter>im</parameter>. <parameter>w</parameter> et + <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> spécifient la largeur et la hauteur de l'ellipse, tandis que le début et la fin de l'arc sont donnés en degrés, par les arguments <parameter>s</parameter> et - <parameter>e</parameter>. + <parameter>e</parameter>. <parameter>color</parameter> est la couleur + utilisé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è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ère de la chaîne <parameter>c</parameter> dans l'image <parameter>id</parameter> avec le coin supérieur gauche placé à la position <parameter>x</parameter>,<parameter>y</parameter> (le coin en haut à 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égrée - sera utilisé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égrée sera utilisé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è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ère @@ -23,7 +23,7 @@ <parameter>id</parameter> avec le coin supérieur gauche placé à la position (<parameter>x</parameter>,<parameter>y</parameter>) (le coin en haut à 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égrée sera utilisé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ésentant la couleur composé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ésultat de la fonction <function>imagecreate</function>. <function>imagecolorallocate</function> doit être appelée pour créer chaque couleur - qui sera représentée par <parameter>im</parameter>. + qui sera représentée par <parameter>image</parameter>. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $white = imagecolorallocate($im, 255,255,255); $black = imagecolorallocate($im, 0,0,0); -?> +?> +]]> </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é</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é aux coordonné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é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érateurs de bits et les + masques pour distinguer le rouge, du vert du bleu : + <example> + <title>Accè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é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ée. </para> <para> - La "distance" entre la couleur souhaitée et les couleurs de la palette est calculée - en considérant l'espace RGB comme un espace à 3 dimensions. + La "distance" entre la couleur souhaitée et les couleurs de + la palette est calculée en considérant l'espace RGB + comme un espace à 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écifiée par les autres paramè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é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ésalloue une couleur + <function>imagecolordeallocate</function> désalloue la couleur + <parameter>color</parameter> précédemment alloué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"> -<?php +<![CDATA[ +<?php $white = imagecolorallocate($im, 255, 255, 255); imagecolordeallocate($im, $white); -?> +?> +]]> </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é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écifié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 été ajoutée en PHP 4.0.6 - et né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é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 à l'index donné. </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ée à 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é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é + transparente d'une image, et de lui donner la valeur de <parameter>color</parameter>. + <parameter>image</parameter> est un identifiant d'image, retourné par <function>imagecreate</function> et - <parameter>col</parameter> est un identifiant de couleur + <parameter>color</parameter> est un identifiant de couleur retourné 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éé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ééchantillonnée de manière à conserver la clarté de l'image durant une ré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èrent, l'image copiée sera étiré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ée une nouvelle image à 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"> -<?php -function loadgif($imgname){ - $im = @imagecreatefromgif($imgname); /* Tentative d'ouverture */ - if ($im == "") { /* échec ? */ - $im = ImageCreate(150,30); /* Cré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'échec */ + $im = imagecreate (150, 30); /* Cré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; } -?> +?> +]]> </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ée une nouvelle image <acronym>JPEG</acronym> à partir d'un fichier ou d'une URL @@ -31,7 +31,8 @@ (gracieusement offert par vic@zymsys.com ) </title> <programlisting role="php"> -<?php +<![CDATA[ +<?php function loadjpeg($imgname) { $im = @imagecreatefromjpeg($imgname); /* Tentative d'ouverture */ if (!$im) { /* Vérification */ @@ -44,7 +45,8 @@ } return $im; } -?> +?> +]]> </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ée une nouvelle image <acronym>PNG</acronym> à partir d'un fichier ou d'une URL @@ -31,7 +31,8 @@ (gracieusement offert par vic@zymsys.com ) </title> <programlisting role="php"> -<?php +<![CDATA[ +<?php function LoadPNG($imgname) { $im = @imagecreatefrompng($imgname); /* Tentative d'ouverture */ if (!$im) { /* Vérification */ @@ -44,7 +45,8 @@ } return $im; } -?> +?> +]]> </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ée une image à partir d'une chaî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ésentant la chaîne <parameter>string</parameter>. + d'image représentant la chaî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ée une image depuis un fichier WBMP</refpurpose> </refnamediv> <refsect1> @@ -27,6 +27,8 @@ WBMP (gracieusement proposé par vic@zymsys.com) </title> <programlisting role="php"> +<![CDATA[ +<?php function loadwbmp($imgname) { $im = @imagecreatefromwbmp($imgname); /* Tentative d'ouverture */ if (!$im) { /* Vérification que cela s'est bien passé */ @@ -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ée une image à 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ésentant l'image obtenue à partir du fichier + d'image représentant l'image obtenue à 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ée une image à 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ésentant l'image obtenue à partir du fichier + d'image représentant l'image obtenue à 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é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é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ée - entre les points (<parameter>x1</parameter>,<parameter>y1</parameter>) - et (<parameter>x2</parameter>,<parameter>y2</parameter>) (le coin - supé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ète. UTilisez plutôt + une combinaison des fonctions <function>imagesetstyle</function> et + <function>imageline</function> à 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é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ère toute la mémoire - associée à l'image <parameter>im</parameter>. - <parameter>im</parameter> est un identifiant d'image valide retourné + associée à l'image <parameter>image</parameter>. + <parameter>image</parameter> est un identifiant d'image valide retourné 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ée sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). Le coin supérieur gauche est aux coordonné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é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é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>, à partir du point de coordonnées (<parameter>x</parameter>, <parameter>y</parameter>) (le coin supé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ée sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). - Le coin supérieur gauche est (0, 0), dans l'image <parameter>im</parameter>. + Le coin supérieur gauche est (0, 0), dans l'image <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> spécifient respectivement la largeur et la hauteur de l'ellipse, tandis que les points de début et de fin sont représentés par <parameter>s</parameter> et <parameter>e</parameter>, en degrés. L'argument <parameter>style</parameter> est un champ de bits, combiné avec l'opé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é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 être - dessiné mais pas rempli. <literal>IMG_ARC_EDGED</literal>, utilisé 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 être + dessiné mais pas rempli. <constant>IMG_ARC_EDGED</constant>, utilisé conjointement + avec <constant>IMG_ARC_NOFILL</constant>, indique que les angles de début et de fin doivent être connectés au centre. Cette fonction est recommandé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ée sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). Le coin supérieur gauche est aux coordonné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é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é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çant par le sommet supérieur gauche (<parameter>x1</parameter>, <parameter>y1</parameter>) et finissant au sommet inférieur droit (<parameter>x2</parameter>, <parameter>y2</parameter>). Le coin supé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égion avec une couleur spé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égion à l'intérieur de la région limitée par la couleur + <function>imagefilltoborder</function> remplit avec la couleur + <parameter>color</parameter> toute la région à + l'intérieur de la région limitée par la couleur <parameter>border</parameter>. Le point de départ est (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supé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 à 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 - à l'image GD <parameter>im</parameter>. Le facteur d'entrée est + à l'image GD <parameter>image</parameter>. Le facteur d'entré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énère une image au format GD2, + vers le navigateur ou un fichier. </para> + <para> + Le paramètre optionnel <parameter>type</parameter> vaut soit + <literal>raw</literal> (brut) soit <literal>compressed</literal> + (compressé). + </para> + <note> + <para> + Les paramètres optionnels <parameter>chunk_size</parameter> et + <parameter>type</parameter> ont été ajouté 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ée un fichier image <acronym>GIF</acronym> avec le nom - <parameter>filename</parameter> d'après l'image <parameter>im</parameter>. - L'argument <parameter>im</parameter> est un identifiant valide retourné par la + <parameter>filename</parameter> d'après l'image <parameter>image</parameter>. + L'argument <parameter>image</parameter> est un identifiant valide retourné par la fonction <function>imagecreate</function>. </para> <para> @@ -43,7 +43,8 @@ par un code plus souple : <informalexample> <programlisting role="php"> -<?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"); } -?> +?> +]]> </programlisting> </informalexample> </para> </note> <note> <para> - En PHP 4, à partir de la version 4.0.2, vous pouvez utiliser la fonction - <function>imagetypes</function> à la place de - <function>function_exists</function> pour vérifier que certains - formats d'images sont supportés : - <informalexample> - <programlisting role="php"> -<?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"); - } -?> - </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érifier la + présence des différents formats d'images supporté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é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ésactive le bit d'entrelacement. </para> <para> - Si l'entrelacement est à 1, l'image <parameter>im</parameter> sera + Si l'entrelacement est à 1, l'image <parameter>image</parameter> sera interlacée, et sinon, elle ne le sera pas. Si le format d'affichage - de l'image est <acronym>JPEG</acronym>, l'image créée sera un JPEG progressif. + de l'image est <acronym>JPEG</acronym>, l'image créée sera + un JPEG progressif. </para> <para> <function>imageinterlace</function> retourne l'é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 été + l'envoie dans un fichier. <parameter>image</parameter> a été créé 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érieur gauche est l'origine (0,0)) dans l'image <parameter>im</parameter> - et avec la couleur <parameter>col</parameter>. + (le coin supé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 à 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"> -<?php +<![CDATA[ +<?php $im = imagecreatefrompng("test.png"); imagepng($im); -?> +?> +]]> </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é 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é 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ère dans une police. + Change le codage vectoriel d'un caractè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è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è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> étend ou condense la police de caractè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ère la mémoire occupée par une police PostScript Type 1. + Libère la mémoire occupé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ère la mémoire + occupé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ù tout a bien marché, un index de police - va être retourné, et pourra être utilisé - pour des opérations ultérieures. Sinon, la fonction + En cas de succès, <function>imagepsloadfont</function> retourne un index de police, + qui pourra être utilisé + pour des opérations ultérieures. Sinon, + <function>imagepsloadfont</function> retourne &false;et affiche un message décrivant - ce qui est erroné. + ce qui est arrivé. </para> <para> <programlisting role="php"> -<?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); -?< +<![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é... +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ères + Incline une police de caractè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è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é 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 être dessiné. <parameter>background</parameter> est la couleur d'anti aliasing. @@ -57,6 +50,9 @@ </para> <para> <parameter>angle</parameter> est en degrés. + </para> + <para> + <parameter>size</parameter> est exprimé en pixels. </para> <para> <parameter>antialias_steps</parameter> permet de contrô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çant au point supérieur gauche (<parameter>x1</parameter>, <parameter>y1</parameter>), et en finissant au point inférieur droit (<parameter>x2</parameter>,<parameter>y2</parameter>). Le coin supé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érieur gauche est l'origine (0,0)) dans l'image <parameter>im</parameter>, - et avec la couleur <parameter>col</parameter>. + (le coin supé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'é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'épaisseur - du trait des lignes de l'image <parameter>im</parameter>. Cette + du trait des lignes de l'image <parameter>image</parameter>. Cette é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é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>, à 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éé une nouvelle brosse. - </para> - </note> - <note> - <para> - <function>imagesettile</function> a été ajouté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î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îne sur une ligne - horizontale, dans l'image <parameter>im</parameter>, aux coordonnées + horizontale, dans l'image <parameter>image</parameter>, aux coordonnées (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supé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éfaut sera utilisé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î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îne sur une ligne - verticale dans l'image <parameter>im</parameter> aux coordonnées + verticale dans l'image <parameter>image</parameter> aux coordonnées (<parameter>x</parameter>, <parameter>y</parameter>) (l'origine est le coin - supérieur gauche (0,0)) dans la couleur <parameter>col</parameter>. + supérieur gauche (0,0)) dans la couleur <parameter>color</parameter>. Si la police utilisée est 1, 2, 3, 4 ou 5, une police par défaut sera utilisé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éférencé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éférencée par <parameter>im</parameter>. + référencé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 à 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 à palette. + en vraies couleurs <parameter>image</parameter> en image à palette. Le code de cette fonction est directement tiré de la librairie du "Independent JPEG Group", qui est tout simplement génial. Le code a été modifié pour pré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é 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îne <parameter>text</parameter> - dans l'image <parameter>im</parameter>, en commençant aux coordonnées + dans l'image <parameter>image</parameter>, en commençant aux coordonnées (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supé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ée par + couleur <parameter>color</parameter>, en utilisant la police TrueType identifiée par <parameter>fontfile</parameter>. Suivant la version de GD dont vous disposez, lorsque le paramètre <parameter>fontfile</parameter> ne commence pas par un slash '/', l'extension '.ttf' sera ajoutée au nom du fichier et la @@ -52,7 +52,7 @@ pour générer des caractères au-delà 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égatifs, revient à supprimer l'anti-aliasing. </para> <para> @@ -78,7 +78,7 @@ // Remplacez path par votre chemin d'accès aux polices imagettftext($im, 20, 0, 10, 20, $white, "/path/arial.ttf", - "Test en cours... Omega: &#937;"); + "Test en cours... Omega: Ω"); 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é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és par la version de GD - utilisé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é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"> -<?php - if (imagetypes() & IMG_PNG) { +<![CDATA[ +<?php +if (imagetypes() & IMG_PNG) { echo "Le type PNG est supporté"; - } -?> +} +?> +]]> </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ée l'image <acronym>WBMP</acronym> dans le fichier <parameter>filename</parameter>, à partir de l'image - <parameter>im</parameter>. Le paramètre <parameter>im</parameter> + <parameter>image</parameter>. Le paramètre <parameter>image</parameter> a été créé 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ê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êtes EXIF de - l'image <acronym>JPEG</acronym> nommée <parameter>filename</parameter>. - Elle retourne un tableau associatif où les index sont les noms - d'en-têtes EXIF, et les valeurs sont leur valeur - associée. Les en-têtes EXIF sont souvent disponibles - dans les images générées par les appareils - photos numériques, mais chaque constructeur marque ses images d'une - manière qui lui est propre : il est impossible de savoir - quelles en-têtes seront présents. - <example> - <title>Exemple avec <function>read_exif_data</function></title> - <programlisting role="php"> -<?php - $exif = read_exif_data('p0001807.jpg'); - while(list($k,$v)=each($exif)) { - echo "$k: $v<br>\n"; - } -?> - </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é 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:
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ù DIR est le dossier d'installation de GD. Il est recommandé d'utiliser la version de GD qui est distribué 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ée. </para> <para> Augmentez les possibilités des GD de gé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 élé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 été ajoutée en PHP 4.3. L'index 3 contient la chaîne à placer dans les balises <acronym>HTML</acronym> : <literal>"height=xxx width=xxx"</literal>. <example> <title>Exemple avec <function>getimagesize</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $size = getimagesize("img/flag.jpg"); -?> -<IMG SRC="img/flag.jpg" -<?php +?> +<IMG SRC="img/flag.jpg" +<?php echo $size[3]; -?>> +?>> +]]> </programlisting> </example> </para> @@ -51,9 +67,11 @@ <example> <title><function>getimagesize</function> avec une URL</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $size = getimagesize("http://www.php.net/gifs/logo.gif"); -?> +?> +]]> </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ésent pour tous les types d'images. + Cependant, la présence de ces valeurs peut mener à la confusion. Par exemple, + une image <acronym>GIF</acronym> utilise toujours trois canaux par pixel, + mais le nombre de bits par pixel ne peut être calculé dans le cas + d'une image animé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 être capable de + déterminer correctement la taille de l'image. <function>getimagesize</function> + retourne alors zéro comme taille de hauteur et largeur. + </para> <para> + Depuis PHP 4.3, <function>getimagesize</function> retourne aussi un paramètre + additionnel, <literal>mime</literal>, qui correspond au type MIME d'une image. + Cette information peut être utilisée pour envoyer l'entê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ès à <parameter>filename</parameter> est impossible, ou si ce n'est pas une image valide, <function>getimagesize</function> retournera <literal>NULL</literal> et générera une alerte. @@ -81,23 +136,33 @@ <example> <title><function>getimagesize</function> qui retourne IPTC</title> <programlisting role="php"> -<?php - $size = getimagesize("testimg.jpg",&$info); +<![CDATA[ +<?php + $size = getimagesize("testimg.jpg",&$info); if (isset($info["APP13"])) { $iptc = iptcparse($info["APP13"]); var_dump($iptc); } -?> +?> +]]> </programlisting> </example> <note> <simpara> <function>getimagesize</function> ne requiert pas la bibliothèque GD. </simpara> - </note> - <note> <simpara> Le support URL a été ajouté 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 été ajouté 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ée une image <acronym>WBMP</acronym> - à partir de l'image <parameter>im</parameter>. Si le paramètre + à partir de l'image <parameter>image</parameter>. Si le paramètre <parameter>filename</parameter> est fourni, l'image sera créée dans ce fichier, et sinon, elle sera envoyée au navigateur. - <parameter>im</parameter> est une image valide, créée avec la + <parameter>image</parameter> est une image valide, créé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ée sur <parameter>cx</parameter>, <parameter>cy</parameter> (le coin en haut à gauche est l'origine (0,0)) dans l'image référencée par - <parameter>im</parameter>. <parameter>w</parameter> et + <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> spécifient la largeur et la hauteur de l'ellipse, tandis que le début et la fin de l'arc sont donnés en degrés, par les arguments <parameter>s</parameter> et - <parameter>e</parameter>. + <parameter>e</parameter>. <parameter>color</parameter> est la couleur + utilisé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è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ère de la chaîne <parameter>c</parameter> dans l'image <parameter>id</parameter> avec le coin supérieur gauche placé à la position <parameter>x</parameter>,<parameter>y</parameter> (le coin en haut à 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égrée - sera utilisé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égrée sera utilisé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è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ère @@ -23,7 +23,7 @@ <parameter>id</parameter> avec le coin supérieur gauche placé à la position (<parameter>x</parameter>,<parameter>y</parameter>) (le coin en haut à 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égrée sera utilisé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ésentant la couleur composé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ésultat de la fonction <function>imagecreate</function>. <function>imagecolorallocate</function> doit être appelée pour créer chaque couleur - qui sera représentée par <parameter>im</parameter>. + qui sera représentée par <parameter>image</parameter>. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $white = imagecolorallocate($im, 255,255,255); $black = imagecolorallocate($im, 0,0,0); -?> +?> +]]> </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é</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é aux coordonné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é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érateurs de bits et les + masques pour distinguer le rouge, du vert du bleu : + <example> + <title>Accè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é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ée. </para> <para> - La "distance" entre la couleur souhaitée et les couleurs de la palette est calculée - en considérant l'espace RGB comme un espace à 3 dimensions. + La "distance" entre la couleur souhaitée et les couleurs de + la palette est calculée en considérant l'espace RGB + comme un espace à 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écifiée par les autres paramè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é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ésalloue une couleur + <function>imagecolordeallocate</function> désalloue la couleur + <parameter>color</parameter> précédemment alloué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"> -<?php +<![CDATA[ +<?php $white = imagecolorallocate($im, 255, 255, 255); imagecolordeallocate($im, $white); -?> +?> +]]> </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é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écifié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 été ajoutée en PHP 4.0.6 - et né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é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 à l'index donné. </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ée à 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é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é + transparente d'une image, et de lui donner la valeur de <parameter>color</parameter>. + <parameter>image</parameter> est un identifiant d'image, retourné par <function>imagecreate</function> et - <parameter>col</parameter> est un identifiant de couleur + <parameter>color</parameter> est un identifiant de couleur retourné 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éé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ééchantillonnée de manière à conserver la clarté de l'image durant une ré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èrent, l'image copiée sera étiré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ée une nouvelle image à 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"> -<?php -function loadgif($imgname){ - $im = @imagecreatefromgif($imgname); /* Tentative d'ouverture */ - if ($im == "") { /* échec ? */ - $im = ImageCreate(150,30); /* Cré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'échec */ + $im = imagecreate (150, 30); /* Cré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; } -?> +?> +]]> </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ée une nouvelle image <acronym>JPEG</acronym> à partir d'un fichier ou d'une URL @@ -31,7 +31,8 @@ (gracieusement offert par vic@zymsys.com ) </title> <programlisting role="php"> -<?php +<![CDATA[ +<?php function loadjpeg($imgname) { $im = @imagecreatefromjpeg($imgname); /* Tentative d'ouverture */ if (!$im) { /* Vérification */ @@ -44,7 +45,8 @@ } return $im; } -?> +?> +]]> </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ée une nouvelle image <acronym>PNG</acronym> à partir d'un fichier ou d'une URL @@ -31,7 +31,8 @@ (gracieusement offert par vic@zymsys.com ) </title> <programlisting role="php"> -<?php +<![CDATA[ +<?php function LoadPNG($imgname) { $im = @imagecreatefrompng($imgname); /* Tentative d'ouverture */ if (!$im) { /* Vérification */ @@ -44,7 +45,8 @@ } return $im; } -?> +?> +]]> </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ée une image à partir d'une chaî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ésentant la chaîne <parameter>string</parameter>. + d'image représentant la chaî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ée une image depuis un fichier WBMP</refpurpose> </refnamediv> <refsect1> @@ -27,6 +27,8 @@ WBMP (gracieusement proposé par vic@zymsys.com) </title> <programlisting role="php"> +<![CDATA[ +<?php function loadwbmp($imgname) { $im = @imagecreatefromwbmp($imgname); /* Tentative d'ouverture */ if (!$im) { /* Vérification que cela s'est bien passé */ @@ -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ée une image à 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ésentant l'image obtenue à partir du fichier + d'image représentant l'image obtenue à 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ée une image à 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ésentant l'image obtenue à partir du fichier + d'image représentant l'image obtenue à 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é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é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ée - entre les points (<parameter>x1</parameter>,<parameter>y1</parameter>) - et (<parameter>x2</parameter>,<parameter>y2</parameter>) (le coin - supé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ète. UTilisez plutôt + une combinaison des fonctions <function>imagesetstyle</function> et + <function>imageline</function> à 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é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ère toute la mémoire - associée à l'image <parameter>im</parameter>. - <parameter>im</parameter> est un identifiant d'image valide retourné + associée à l'image <parameter>image</parameter>. + <parameter>image</parameter> est un identifiant d'image valide retourné 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ée sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). Le coin supérieur gauche est aux coordonné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é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é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>, à partir du point de coordonnées (<parameter>x</parameter>, <parameter>y</parameter>) (le coin supé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ée sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). - Le coin supérieur gauche est (0, 0), dans l'image <parameter>im</parameter>. + Le coin supérieur gauche est (0, 0), dans l'image <parameter>image</parameter>. <parameter>w</parameter> et <parameter>h</parameter> spécifient respectivement la largeur et la hauteur de l'ellipse, tandis que les points de début et de fin sont représentés par <parameter>s</parameter> et <parameter>e</parameter>, en degrés. L'argument <parameter>style</parameter> est un champ de bits, combiné avec l'opé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é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 être - dessiné mais pas rempli. <literal>IMG_ARC_EDGED</literal>, utilisé 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 être + dessiné mais pas rempli. <constant>IMG_ARC_EDGED</constant>, utilisé conjointement + avec <constant>IMG_ARC_NOFILL</constant>, indique que les angles de début et de fin doivent être connectés au centre. Cette fonction est recommandé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ée sur le point (<parameter>cx</parameter>, <parameter>cy</parameter>). Le coin supérieur gauche est aux coordonné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é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é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çant par le sommet supérieur gauche (<parameter>x1</parameter>, <parameter>y1</parameter>) et finissant au sommet inférieur droit (<parameter>x2</parameter>, <parameter>y2</parameter>). Le coin supé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égion avec une couleur spé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égion à l'intérieur de la région limitée par la couleur + <function>imagefilltoborder</function> remplit avec la couleur + <parameter>color</parameter> toute la région à + l'intérieur de la région limitée par la couleur <parameter>border</parameter>. Le point de départ est (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supé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 à 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 - à l'image GD <parameter>im</parameter>. Le facteur d'entrée est + à l'image GD <parameter>image</parameter>. Le facteur d'entré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énère une image au format GD2, + vers le navigateur ou un fichier. </para> + <para> + Le paramètre optionnel <parameter>type</parameter> vaut soit + <literal>raw</literal> (brut) soit <literal>compressed</literal> + (compressé). + </para> + <note> + <para> + Les paramètres optionnels <parameter>chunk_size</parameter> et + <parameter>type</parameter> ont été ajouté 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ée un fichier image <acronym>GIF</acronym> avec le nom - <parameter>filename</parameter> d'après l'image <parameter>im</parameter>. - L'argument <parameter>im</parameter> est un identifiant valide retourné par la + <parameter>filename</parameter> d'après l'image <parameter>image</parameter>. + L'argument <parameter>image</parameter> est un identifiant valide retourné par la fonction <function>imagecreate</function>. </para> <para> @@ -43,7 +43,8 @@ par un code plus souple : <informalexample> <programlisting role="php"> -<?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"); } -?> +?> +]]> </programlisting> </informalexample> </para> </note> <note> <para> - En PHP 4, à partir de la version 4.0.2, vous pouvez utiliser la fonction - <function>imagetypes</function> à la place de - <function>function_exists</function> pour vérifier que certains - formats d'images sont supportés : - <informalexample> - <programlisting role="php"> -<?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"); - } -?> - </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érifier la + présence des différents formats d'images supporté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é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ésactive le bit d'entrelacement. </para> <para> - Si l'entrelacement est à 1, l'image <parameter>im</parameter> sera + Si l'entrelacement est à 1, l'image <parameter>image</parameter> sera interlacée, et sinon, elle ne le sera pas. Si le format d'affichage - de l'image est <acronym>JPEG</acronym>, l'image créée sera un JPEG progressif. + de l'image est <acronym>JPEG</acronym>, l'image créée sera + un JPEG progressif. </para> <para> <function>imageinterlace</function> retourne l'é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 été + l'envoie dans un fichier. <parameter>image</parameter> a été créé 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érieur gauche est l'origine (0,0)) dans l'image <parameter>im</parameter> - et avec la couleur <parameter>col</parameter>. + (le coin supé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 à 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"> -<?php +<![CDATA[ +<?php $im = imagecreatefrompng("test.png"); imagepng($im); -?> +?> +]]> </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é 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é 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ère dans une police. + Change le codage vectoriel d'un caractè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è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è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> étend ou condense la police de caractè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ère la mémoire occupée par une police PostScript Type 1. + Libère la mémoire occupé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ère la mémoire + occupé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ù tout a bien marché, un index de police - va être retourné, et pourra être utilisé - pour des opérations ultérieures. Sinon, la fonction + En cas de succès, <function>imagepsloadfont</function> retourne un index de police, + qui pourra être utilisé + pour des opérations ultérieures. Sinon, + <function>imagepsloadfont</function> retourne &false;et affiche un message décrivant - ce qui est erroné. + ce qui est arrivé. </para> <para> <programlisting role="php"> -<?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); -?< +<![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é... +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ères + Incline une police de caractè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è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é 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 être dessiné. <parameter>background</parameter> est la couleur d'anti aliasing. @@ -57,6 +50,9 @@ </para> <para> <parameter>angle</parameter> est en degrés. + </para> + <para> + <parameter>size</parameter> est exprimé en pixels. </para> <para> <parameter>antialias_steps</parameter> permet de contrô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çant au point supérieur gauche (<parameter>x1</parameter>, <parameter>y1</parameter>), et en finissant au point inférieur droit (<parameter>x2</parameter>,<parameter>y2</parameter>). Le coin supé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érieur gauche est l'origine (0,0)) dans l'image <parameter>im</parameter>, - et avec la couleur <parameter>col</parameter>. + (le coin supé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'é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'épaisseur - du trait des lignes de l'image <parameter>im</parameter>. Cette + du trait des lignes de l'image <parameter>image</parameter>. Cette é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é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>, à 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éé une nouvelle brosse. - </para> - </note> - <note> - <para> - <function>imagesettile</function> a été ajouté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î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îne sur une ligne - horizontale, dans l'image <parameter>im</parameter>, aux coordonnées + horizontale, dans l'image <parameter>image</parameter>, aux coordonnées (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supé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éfaut sera utilisé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î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îne sur une ligne - verticale dans l'image <parameter>im</parameter> aux coordonnées + verticale dans l'image <parameter>image</parameter> aux coordonnées (<parameter>x</parameter>, <parameter>y</parameter>) (l'origine est le coin - supérieur gauche (0,0)) dans la couleur <parameter>col</parameter>. + supérieur gauche (0,0)) dans la couleur <parameter>color</parameter>. Si la police utilisée est 1, 2, 3, 4 ou 5, une police par défaut sera utilisé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éférencé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éférencée par <parameter>im</parameter>. + référencé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 à 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 à palette. + en vraies couleurs <parameter>image</parameter> en image à palette. Le code de cette fonction est directement tiré de la librairie du "Independent JPEG Group", qui est tout simplement génial. Le code a été modifié pour pré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é 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îne <parameter>text</parameter> - dans l'image <parameter>im</parameter>, en commençant aux coordonnées + dans l'image <parameter>image</parameter>, en commençant aux coordonnées (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supé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ée par + couleur <parameter>color</parameter>, en utilisant la police TrueType identifiée par <parameter>fontfile</parameter>. Suivant la version de GD dont vous disposez, lorsque le paramètre <parameter>fontfile</parameter> ne commence pas par un slash '/', l'extension '.ttf' sera ajoutée au nom du fichier et la @@ -52,7 +52,7 @@ pour générer des caractères au-delà 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égatifs, revient à supprimer l'anti-aliasing. </para> <para> @@ -78,7 +78,7 @@ // Remplacez path par votre chemin d'accès aux polices imagettftext($im, 20, 0, 10, 20, $white, "/path/arial.ttf", - "Test en cours... Omega: &#937;"); + "Test en cours... Omega: Ω"); 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é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és par la version de GD - utilisé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é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"> -<?php - if (imagetypes() & IMG_PNG) { +<![CDATA[ +<?php +if (imagetypes() & IMG_PNG) { echo "Le type PNG est supporté"; - } -?> +} +?> +]]> </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ée l'image <acronym>WBMP</acronym> dans le fichier <parameter>filename</parameter>, à partir de l'image - <parameter>im</parameter>. Le paramètre <parameter>im</parameter> + <parameter>image</parameter>. Le paramètre <parameter>image</parameter> a été créé 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ê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êtes EXIF de - l'image <acronym>JPEG</acronym> nommée <parameter>filename</parameter>. - Elle retourne un tableau associatif où les index sont les noms - d'en-têtes EXIF, et les valeurs sont leur valeur - associée. Les en-têtes EXIF sont souvent disponibles - dans les images générées par les appareils - photos numériques, mais chaque constructeur marque ses images d'une - manière qui lui est propre : il est impossible de savoir - quelles en-têtes seront présents. - <example> - <title>Exemple avec <function>read_exif_data</function></title> - <programlisting role="php"> -<?php - $exif = read_exif_data('p0001807.jpg'); - while(list($k,$v)=each($exif)) { - echo "$k: $v<br>\n"; - } -?> - </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é 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: