[magick-users] Text bounds
Anthony Thyssen
anthony at griffith.edu.au
Wed Jan 23 17:23:55 PST 2008
Chris Ferry on wrote...
| All,
|
| I'm hoping to migrate a Card Making application from using
| GD::Text::Wrap to ImageMagick.
|
| Here's what I need to know
|
| Can I annotate text within a bound box so say
|
| I want text on a 1200x2400 card to start at offsetX=800 offsetY=1900
| and boxSizeX=300 boxSizeY=300.
|
You can create a label as a specify size, and have IM automatically
select the largest point size that will work, with, or without word
wrapping. This can then be overlayed to the poistion wanted.
| So we've got a 300x300 pixel box starting at 800x1900....
|
| Now I want to write "Happy Birthday Bob!\n\n Don't get too plastered!!!
| \n\n\n Your Buddy Chris".
|
| I also want to have that text centered in the text box and line wrap
| if necessary.
|
No problems.
| After reading through the docs I can't seem to find this functionality.
|
| Am I blind?
|
probably the wrong docs. you want IM Examples, Text to Image Handling
http://imagemagick.org/Usage/text/
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Windows Multitasking :- Start a download, Get a Coke, Fly a kite.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list