RE: Image Scripting Help
You can use an image box of the text first to get the dimensions and then be able to centre that. www.php.net/imagettfbox
i think you only need the 4th element of the array to get the width as well. The you can compare it to the width of the background and divide the difference by 2, this will give the x offset tha you need for the text's placement.
|