> I am using ColdFusion to write some text on an image and I 
> don't know in advance what the string is going to be so I 
> can't guess where to start writing it.
> 
> Is there a way to say write this text around a particular point? 
> 
> I can check from the image how wide it is and work out where 
> the centre is but I can't see how to either tell the 
> ImageDrawText() function to center it or work out how wide 
> the text will be once its written.

I think you have to figure out the offset, and start from there. So, you'll
need to determine the approximate width in pixels of your text string, and
subtract half of that from the distance from the edge of your image to the
center.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311420
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to