hi all, i am using GD library of php
the polygon did not filled with the red color whyCode:$x = 200; //largeur de mon image en PIXELS uniquement ! $y = 200; //hauteur de mon image en PIXELS uniquement ! $image = imagecreatetruecolor($x,$y); $couleur = imagecolorallocate($image,255,0,0); $coords = array('5','5', // point 1 '190', '190', // point 2 '160','40'); // point 3 imagefilledpolygon($image,$coords,3,$couleur); imagepng($image,"1.png"); imagedestroy($image);


Reply With Quote
