Hallo allemaal, heb mij eventjes geregistreerd omdat ik met photoshop signatures wil maken die dynamisch zijn. Voor het internetspel Runescape
Mijn vraag is hoe verander ik het script zodat het steeds de skills uit de highscores ophaald?
Hier de code tot nu toe:
<?php
//PHP's GD class functions can create a variety of output image
//types, this example creates a jpeg
header("Content-Type: image/jpeg");
//open up the image you want to put text over
$im = ImageCreateFromGif("template.gif");
//The numbers are the RGB values of the color you want to use
$black = ImageColorAllocate($im, 255, 255, 255);
//The canvas's (0,0) position is the upper left corner
//So this is how far down and to the right the text should start
$start_x = 10;
$start_y = 20;
//This writes your text on the image in 12 point using verdana.ttf
//For the type of effects you quoted, you'll want to use a truetype font
//And not one of GD's built in fonts. Just upload the ttf file from your
//c: windows fonts directory to your web server to use it.
Imagettftext($im, 12, 0, $start_x, $start_y, $black, 'verdana.ttf', "text to write");
//Creates the jpeg image and sends it to the browser
//100 is the jpeg quality percentage
Imagejpeg($im, '', 100);
ImageDestroy($im);
?>
1.291 views