Marcos Placona Blog

Programming, technology and the taming of the web.

Tag of the day: CFIMAGE

Reading time: 1 – 2 minutes

I was playing with my Alpha version of Scorpio and found some interesting new functions for images. The tag of the day was CFIMAGE
The marketing is what moves the business.
As most of the CF Developers are men, I decided to use this image 🙂
That was just 1% of what this tag can do, and here’s the code:

<cfimage source="test.jpg" name="myImage">
<cfset attr = StructNew() />
<cfset attr.underline = "no" />
<cfset attr.size = 13 />
<cfset = "bold" />
<cfset ImageSetDrawingColor(myImage,"white") />
<cfset ImageDrawText(myImage,"",90,170,attr) />
<cfimage source="#myImage#" action="writeToBrowser">

Ps. I’m not breaking any NDA here as all the code shown here has been shown in previous posts about Scorpio’s new features


  1. I’m sure in the other NDA’s that I have had to sign with Allaire/MM/Adobe even to say you have the beta is breaking it?

  2. Hi Kev, if you carefully read Adobe’s NDA you’ll see it’s much more flexible than MM’s. Now you can even say you are a Beta Tester, and after some research I found that Scorpio wil probably not even have a "closed" testing for Beta.

    They’ll put it on Adobe Labs, as they did with Flex 2.


  3. For your first question:
    That’s sort of what I’m using on the last line of my example.

    For the second one:
    I’m not sure. Will check it and post here 🙂

    Marcos Placona

  4. Hi,

    its really impressive, what about stored images in DB then render to browser.
    secondly would you tell me which JVM version of scorpio,,, just keen to know


Leave a Reply

Your email address will not be published.