Skip to content

Commit f450702

Browse files
authored
Sync image/functions with EN (a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1d) (#1996)
1 parent 564a19d commit f450702

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

reference/image/functions/imagefilledpolygon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 8a2141dcc084f72feb4e0ae2feaff3b440e5c59e Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1d Maintainer: yannick Status: ready -->
33
<!-- Reviewed: yes -->
44
<refentry xml:id="function.imagefilledpolygon" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
@@ -126,7 +126,7 @@ $blue = imagecolorallocate($image, 0, 0, 255);
126126
imagefilledrectangle($image, 0, 0, 249, 249, $bg);
127127
128128
// Dessine le polygone
129-
imagefilledpolygon($image, $values, 6, $blue);
129+
imagefilledpolygon($image, $values, $blue);
130130
131131
// Affichage de l'image
132132
header('Content-type: image/png');

reference/image/functions/imageopenpolygon.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 8a2141dcc084f72feb4e0ae2feaff3b440e5c59e Maintainer: girgias Status: ready -->
2+
<!-- EN-Revision: a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1d Maintainer: girgias Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="function.imageopenpolygon" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
@@ -129,22 +129,21 @@
129129
<programlisting role="php">
130130
<![CDATA[
131131
<?php
132-
// Create a blank image
132+
// Créer une image vide
133133
$image = imagecreatetruecolor(400, 300);
134134
135-
// Allocate a color for the polygon
135+
// Alloue une couleur pour le polygone
136136
$col_poly = imagecolorallocate($image, 255, 255, 255);
137137
138-
// Draw the polygon
138+
// Dessine le polygone
139139
imageopenpolygon($image, array(
140140
0, 0,
141141
100, 200,
142142
300, 200
143143
),
144-
3,
145144
$col_poly);
146145
147-
// Output the picture to the browser
146+
// Affiche l'image dans le navigateur
148147
header('Content-type: image/png');
149148
150149
imagepng($image);

reference/image/functions/imagepolygon.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 8a2141dcc084f72feb4e0ae2feaff3b440e5c59e Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1d Maintainer: yannick Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="function.imagepolygon" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
@@ -138,7 +138,6 @@ imagepolygon($image, array(
138138
100, 200,
139139
300, 200
140140
),
141-
3,
142141
$col_poly);
143142
144143
// Affichage de l'image sur le navigateur

0 commit comments

Comments
 (0)