Drawing a Polygon with imagefilledpolygon() : Polygon : Language Basics PHP Source Code


PHP Source Code » Language Basics » Polygon »

 

Drawing a Polygon with imagefilledpolygon()



<?php
header("Content-type: image/gif");
$image = imagecreate200200 );
$red = imagecolorallocate($image, 255,0,0);
$blue = imagecolorallocate($image, 0,0,255 );
$points = array (1010,
                 190190,
                 19010,
                 10190
);
imagefilledpolygon$image, $points, count$points )/, $blue );
imagegif($image);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Polygon