This content has been marked as final. Show 3 replies
> 1. Is there any way to make the text align right or center?
> 2. I'd like to create a text string, get it's exact length and then paste it onto an image.
That is not really something you can do with imageDrawText. You can use this method to get the size of the graphical text. Then use those dimensions to center or right align the text.
Bear in mind the measurements are not always pixel perfect. When using italics or certain fonts, the size may be off by a few pixels occasionally . But they should be good enough for most purposes.
Perfect. Yes the imageutils solved the problem. Thanks for your help