<?php
echo '<html><body style=background-color:green >';
if(file_exists('img1.png'))unlink('img1.png');
$arr_coords=array(22,0,108,0,147,16,182,7,182,16,148,39,0,33);
$img = imagecreatetruecolor(200, 70);
$black= imagecolorallocate($img, 0, 0, 0);
$color = imagecolorallocate($img,0,0,255);
imageColorTransparent($img,$black);
imagefilledpolygon($img,$arr_coords,count($arr_coords)/2,$color);
imagepng($img,'img1.png');
imagedestroy($img);
//здесь мне ещё нужно сделать этот многоугольник ПОЛУПРОЗРАЧНЫМ:
echo "<img src=img1.png style=opacity:.50 />";
echo '</body></html>';
?>
|