1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| header ("Content-type: image/png");
putenv('GDFONTPATH=' . realpath('.'));
$image = @imagecreate(618, 825)
or die('Cannot Initialize new GD image stream');
include("Numbers/Words.php");
$blanc=imagecolorallocate($image, 255, 255, 255);
$noir=imagecolorallocate($image, 0, 0, 0);
//mysql_connect("", "", "");
//mysql_select_db("");
//$type=$_POST['type'];
//$pass=explode('/', $type);
//$nom=$_POST['nom'];
$jours=2;
//$age=$pass['0'];
//$classe=$pass['1'];
//$area=$pass['3'];
//$yc=mysql_query("SELECT * FROM jrpass WHERE type='$type' LIMIT 1");
//while($dy=mysql_fetch_array($yc)){
//$yenchiffres=$dy['yen'];
$yenchiffres=25;
//$yl=new Numbers_Words();
//$yenlettres=$yl->toWords($yenchiffres);
//$yenlettres=strtoupper($yenlettres);}
$yenlettres="dgsdg";
////////////////////////////////
//include("euro.php");
////////////////////////////////
//$el=new Numbers_Words();
//$eurolettres=$el->toWords($eurochiffres);
//$eurolettres=strtoupper($eurolettres);
$eurolettres="Three hundred and thirty Four";
$eurochiffres=324;
//$tauxreport=$taux;
//$taux='1EUR=JPY'.$_POST['taux'];
$taux="1EUR=JPY 108";
$nom="BOBBIE KASSPARROFF LORD DARK";
//$cmd=$_POST['cmd'];
$cmd=342423;
$fonts='COLLEGE.TTF';
$font='EthBlackExtended.ttf';
//1er chiffe est la taille de caractere de la police...
//2eme chiffe est le degree du caractere...
imagettftext($image, 25*0.69, 90.22, 186, 825, $noir, $fonts, $nom);
imagettftext($image, 25*0.69, 90.22, 249, 405, $noir, $font, $jours);
imagettftext($image, 15*0.69, 90.22, 368, 805, $noir, $fonts, $yenlettres);
imagettftext($image, 25*0.69, 91, 372, 260, $noir, $font, $yenchiffres);
imagettftext($image, 15*0.69, 90.21, 430, 795, $noir, $fonts, $eurolettres);
imagettftext($image, 20*0.69, 91, 428, 340, $noir, $fonts, "EUR");
imagettftext($image, 25*0.69, 91, 428, 260, $noir, $font, $eurochiffres);
imagettftext($image, 18*0.69, 91, 540, 150, $noir, $fonts, $taux);
imagettftext($image, 25*0.69, 91, 618, 130, $noir, $font, $cmd);
$degrees=180;
$rotate=imagerotate($image, $degrees, 0);
imagepng($rotate);
imagedestroy($rotate);
*/ |
Partager