2012-08-23 62 views

回答

0

是的,你顯然可以簡單地看documentation。向下滾動,使用瀏覽器的查找功能來搜索以下內容:

jodybrabec at gmail dot com 

低於他的名字,他爲您提供了使用一個不錯的cusotm功能。 (在這裏得到了一個鏈接,無需使用查找功能:http://php.net/manual/en/function.imagettfbbox.php#105593

+0

因此,如果我想在背景中居中,它會是這樣嗎? –

+0

(bgheight/2) - (ttfheight/2)? –

+0

你也許可以說: '$ X =(0.5 * imagesx($ IM))+;' 其中$ IM是你的圖像資源和$ txtWidth是文本的寬度(5 * $ txtWidth。)你想要居中。 – jeremy