ImagePSText
(PHP3 >= 3.0.9 , PHP4 >= 4.0RC1)
ImagePSText --- 使用PostScript Type1字體在圖形上畫出文字字串
語法 : array imagepstext (int image, string text, int font, int size, int foreground, int background, int x, int y [, int space [, int tightness [, float angle [, int antialias_steps]]]])
說明 :
size表示(expressed)像素。
foreground是要將文字著色的顏色,background是文字將會試著褪去(fade)的顏色。
坐標 x,y將會定義成第一個字元(字元的左下角)的起源(或參考點),這和imagestring( )不同,imagestring( )是定義成字元的右上角。
space允許你去改變字體中,間隔(space)的預設值,這個總合會和標準的值相加,而且也可以是負數。
tightness允許你去控制二字元間空白的總數,這個總合會和標準的值相加,而且也可以是負數。
angle是度數。
antialias_steps允許你控制antialiasing文字顏色的數值,允許的值為 4和16。
參數 space和tightness表示字元空白的單位,單位1是em-square的1/1000th。
參數 space、tightness、angle和antialias都是非必需的。
傳回的陣列包含了下列的元素 :
0 左下角 x坐標
1 左下角 y坐標
2 右上角 x坐標
3 右上角 y坐標
參考 : imagepsbbox( )