Salve a tutti! domanda semplice semplice :
Come faccio con le GD a scrivere un testo allineato in centro?
esempio di codice :
codice:<? header("Content-type: image/png"); $im = imagecreate(250, 30); $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 1, 75, 100); $text = $c; $font = 'Gill_Sans_Bold.ttf'; imagettftext($im, 16, 0 , 0, 20, $black, $font, $text); imagepng($im); imagedestroy($im); ?>