gdImageStringFT()

 
This will append a string of text to an image.
Syntax
gdImageStringFT( im, brect var, fg, fontlist, ptsize, angle, x, y, string )
Returns an error message
User Annotations: gdImageStringFT
Kyle Hansen : khansen at, mivamerchant d0t com
02/28/2013 17:29 p.m.
gdImageStringFT outputs text to the image. 

The parameters are described as follows:
im - The image you are appending the text to
brect - Array of the coordinates for the bounding rectangle surrounding the text
fg - Font color
fontlist - Font list
ptsize - Font size
angle - Angle in which the text is displayed. (Values accepted in radians)
x - The horizontal position of where the text will be written
y - The vertical position of where the text will be written
string - The text to be appended to the image
<MvASSIGN NAME = "l.image" VALUE = "{ gdImageCreate( 100, 100 ) }">
<MvASSIGN NAME = "l.black" VALUE = "{ gdImageColorAllocate( l.image, 0, 0, 0 ) }">
<MvASSIGN NAME = "l.null" VALUE = "{ gdImageStringFT( l.image, l.brect, l.black, 'Nimbus Mono L:regular', 12, 0, 10, 10, 'I am text' ) }">