22 pers. connectées au site
Wall posté le Jeudi 26 avril 2007
no soucy
- <?php
-
-
-
-
-
- if(isset($_GET["texte"])) $texte = $_GET["texte"]; else $texte = "Gniarf";
-
-
- header("Content-type: image/jpeg");
-
- $background = imagecreatefromJPEG("tu_sors.jpg");
-
-
-
- $imageWidth = 800;
-
- $imageHeight = 562;
-
- $im = imagecreatetruecolor($imageWidth,$imageHeight);
-
-
- $bgcolor = imagecolorallocate($im,0,0,0);
-
-
- imagecopy($im,$background,0,0,0,0,$imageWidth,$imageHeight);
-
- imagedestroy($background);
-
-
- $fontname="./tahoma.ttf";
- $fontsize = "20";
- $angle = "1";
- $x = "400";
-
-
- imagettftext($im,$fontsize,$angle,$x,135,$bgcolor,$fontname,"tu sors,");
-
- imagettftext($im,$fontsize,$angle,$x,170,$bgcolor,$fontname,$texte);
-
- imagettftext($im,$fontsize,$angle,$x,195,$bgcolor,$fontname,"et ne reviens pas !");
-
-
-
- imageJPEG($im);
- imagedestroy($im);
-
-
- ?>
Remonter