John,

I did something that was inspired by Barney Boisvert. An image function
that draws text areas rather than just a line of text:

http://www.bennadel.com/blog/977-ColdFusion-8-ImageDrawTextArea-Inspired
-By-Barney-Boisvert-.htm 

In order to do this, I had to figure out the dimensions of the text
itself. Take a look at the innards.


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: John Blayter [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 14, 2008 3:08 PM
To: CF-Talk
Subject: CF8 Image function - get size of text written

Does anyone know a way for getting the size of the text written to an
image? For example. Lets say that I have an image that is 50 pixels high
and 400 pixels wide and I write some text on the image starting at the
first pixel and the text only takes a width of 212 pixels. How can I
tell that the text only took up 212 pixels?

I am looking for something like the getdimensions() method from
cfx_imageflare
http://efflare.com/products/cfx_imageflare/documentation/font.html




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

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

Reply via email to