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:
@@ -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');
|
||||
|
||||
@@ -140,7 +140,6 @@ imageopenpolygon($image, array(
|
||||
100, 200,
|
||||
300, 200
|
||||
),
|
||||
3,
|
||||
$col_poly);
|
||||
|
||||
// Output the picture to the browser
|
||||
|
||||
@@ -136,7 +136,6 @@ imagepolygon($image, array(
|
||||
100, 200,
|
||||
300, 200
|
||||
),
|
||||
3,
|
||||
$col_poly);
|
||||
|
||||
// Output the picture to the browser
|
||||
|
||||
Reference in New Issue
Block a user