<?php // nouvelle image $image = imagecreatetruecolor(400,300);
// couleur de fond $bg = imagecolorallocate($image,0,0,0);
// couleur pour les bords du polygone $col_poly = imagecolorallocate($image,255,255,255);
// on dessine le polygone imagepolygon($image, array ( 0, 0, 100, 200, 300, 200 ), 3, $col_poly);
// on affiche l'image header("Content-type: image/png"); imagepng($image);
?>
|