Public feed #377602

Stuff

public php v1 · immutable
Raw Edit
·published 2007-03-01 21:39 UTC
rendered paste body
<?phperror_reporting(E_ALL); ini_set('display_errors', 'on');$font = "fonts/arial.ttf";$font_size = 9;                            // Font size in points $vipfont_size = 12;						   // VIP Font size in points $user = $_GET['brugernavn'];$im = imagecreatefrompng("graphic/userinfobanner.png"); // background and text color$textcolor = imagecolorallocate($im, 0, 0, 0);$viptextcolor = imagecolorallocate($im, 249, 162, 24);// write the string at the top left//imagestring($im, 50, 120, 34, $lektier, $textcolor);ImageTTFText($im, $font_size, 0, 122, 47, $textcolor, $font, "TEST1"); ImageTTFText($im, $font_size, 0, 120, 17, $textcolor, $font, "TEST2); ImageTTFText($im, $font_size, 0, 94, 31, $textcolor, $font, "TEST3"); ImageTTFText($im, $font_size, 0, 260, 17, $textcolor, $font, "TEST4"); ImageTTFText($im, $font_size, 0, 297, 31, $textcolor, $font, "TEST5"); ImageTTFText($im, $font_size, 0, 415, 31, $textcolor, $font, "TEST6"); ImageTTFText($im, $font_size, 0, 430, 17, $textcolor, $font, "TEST7"); ImageTTFText($im, $vipfont_size, 0, 200, 48, $viptextcolor, $font, "V.I.P. Medlem"); // output the imageheader("Content-type: image/png");imagepng($im); ImageDestroy($im); ?>