Andrew Gaffney <[EMAIL PROTECTED]> wrote: : Can anyone recommend a way to make the generated text : (testbutton.png) look like the text in the hand-made : one (contactusbutton.gif)? Also, since this will be a : script to auto-generate these images with user-defined : text, how can I center the text in the image (or even : in the blue rectangle)? Should I use a different : module for generating the text, or even for generating : the whole image?
Take a look at the stringTTF() method. It allows you to choose a TrueType font and returns the bounds of the string. Using the string boundaries, you might then be able to center the string in a box. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>