20.02.2010, 20:58
Код:
$fontfile = "./novamono.ttf"; $size = 25; $x = 385; $y = 25; $im = imagecreatefrompng("show.png"); imagealphablending($im, true); imagesavealpha($im, true); $color = ImageColorAllocate($im, 255, 255, 255); header("Content-Type: image/png"); ImageTTFText($im, $size, 0, $x, $y, $color, $fontfile, $_GET['text']); ImagePNG($im,'lol.png'); //lol.png just for test