Blog

 création d'image en PHP

7/7/2009


Ceci est un exemple de création d'image en PHP :


$image = imagecreate(400,300);
$bg = imagecolorallocate($image,0,0,0);
$col_poly = imagecolorallocate($image,255,255,255);

imagepolygon($image,
array (
0, 0,
100, 200,
300, 200
),
3,
$col_poly);

header("Content-type: image/png");
imagepng($image);

?>



Pour l'inserer sur page html




Tags : image en PHP

Catégorie : Non spécifié

Commentaires

Créer un blog | Liens : Fonds d'écran gratuits | Katie Melua |  Contacter l'auteur