If you do a search here, last year there was a discussion about using java to add and manipulate text on the fly. Look around October-ish. I was doing a contract ad a casket maker and they did websites for funeral homes. One of the site features was being ablet o make a slide show of images plus custom text that had you can put saying or whatever you wanted. This code was based off of some work ben Nadel did and I expanded on that with another list member (I am forgetting her name ATM...sorry, I am horrible with names). That discussion may help you. I did post the final code I had to the list.
Eric -----Original Message----- From: Leigh [mailto:[email protected]] Sent: Sunday, February 19, 2012 9:59 PM To: cf-talk Subject: Re: Adding a border to text using CFImage > With a few small changes, it could fill in the text shape with one color and use setStroke to create a border of another color: ie Change these two lines: graphics.setColor(textColor); graphics.draw(shape); ... to something like this // color in the text Color = createObject("java", "java.awt.Color"); graphics.setColor( Color.decode("##80aa1c") ); graphics.fill( shape ); // create a thin border stroke = createObject("java", "java.awt.BasicStroke").init( 1 ); graphics.setStroke( stroke ); graphics.setColor( Color.decode("##800080") ); graphics ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349955 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

