1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

Example of update image functions (#4388)

This commit is contained in:
Luffy
2025-01-14 21:40:27 +08:00
committed by GitHub
parent 4c016ab334
commit a79c3e42ab
3 changed files with 1 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ $blue = imagecolorallocate($image, 0, 0, 255);
imagefilledrectangle($image, 0, 0, 249, 249, $bg);
// draw a polygon
imagefilledpolygon($image, $values, 6, $blue);
imagefilledpolygon($image, $values, $blue);
// flush image
header('Content-type: image/png');

View File

@@ -140,7 +140,6 @@ imageopenpolygon($image, array(
100, 200,
300, 200
),
3,
$col_poly);
// Output the picture to the browser

View File

@@ -136,7 +136,6 @@ imagepolygon($image, array(
100, 200,
300, 200
),
3,
$col_poly);
// Output the picture to the browser