Skip to content

Commit

Permalink
Sync image/functions with EN (a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1…
Browse files Browse the repository at this point in the history
…d) (#1996)
  • Loading branch information
Fan2Shrek authored Jan 15, 2025
1 parent 564a19d commit f450702
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions reference/image/functions/imagefilledpolygon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 8a2141dcc084f72feb4e0ae2feaff3b440e5c59e Maintainer: yannick Status: ready -->
<!-- EN-Revision: a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1d Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.imagefilledpolygon" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -126,7 +126,7 @@ $blue = imagecolorallocate($image, 0, 0, 255);
imagefilledrectangle($image, 0, 0, 249, 249, $bg);
// Dessine le polygone
imagefilledpolygon($image, $values, 6, $blue);
imagefilledpolygon($image, $values, $blue);
// Affichage de l'image
header('Content-type: image/png');
Expand Down
11 changes: 5 additions & 6 deletions reference/image/functions/imageopenpolygon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 8a2141dcc084f72feb4e0ae2feaff3b440e5c59e Maintainer: girgias Status: ready -->
<!-- EN-Revision: a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1d Maintainer: girgias Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.imageopenpolygon" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -129,22 +129,21 @@
<programlisting role="php">
<![CDATA[
<?php
// Create a blank image
// Créer une image vide
$image = imagecreatetruecolor(400, 300);
// Allocate a color for the polygon
// Alloue une couleur pour le polygone
$col_poly = imagecolorallocate($image, 255, 255, 255);
// Draw the polygon
// Dessine le polygone
imageopenpolygon($image, array(
0, 0,
100, 200,
300, 200
),
3,
$col_poly);
// Output the picture to the browser
// Affiche l'image dans le navigateur
header('Content-type: image/png');
imagepng($image);
Expand Down
3 changes: 1 addition & 2 deletions reference/image/functions/imagepolygon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 8a2141dcc084f72feb4e0ae2feaff3b440e5c59e Maintainer: yannick Status: ready -->
<!-- EN-Revision: a79c3e42ab8e3f19f7f8fa11dbae463d7f066c1d Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.imagepolygon" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -138,7 +138,6 @@ imagepolygon($image, array(
100, 200,
300, 200
),
3,
$col_poly);
// Affichage de l'image sur le navigateur
Expand Down

0 comments on commit f450702

Please sign in to comment.