Tag of the day: CFIMAGE
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:
<!--- Create my image object --->
<cfimage source="C:\Scorpio\wwwroot\img\test.jpg" name="myImage">
<!--- Set the optional attributes --->
<cfset attr = StructNew()>
<cfset attr.underline = "no">
<cfset attr.size = 13>
<cfset attr.style = "bold">
<!--- Set the drawing color to white. --->
<cfset ImageSetDrawingColor(myImage,"white")>
<!--- Specify the text string and the start point for the text. --->
<cfset ImageDrawText(myImage,"placona.co.uk",80,135,attr)>
<!--- Display the image in a browser. --->
<cfimage source="#myImage#" action="writeToBrowser">
<cfimage source="C:\Scorpio\wwwroot\img\test.jpg" name="myImage">
<!--- Set the optional attributes --->
<cfset attr = StructNew()>
<cfset attr.underline = "no">
<cfset attr.size = 13>
<cfset attr.style = "bold">
<!--- Set the drawing color to white. --->
<cfset ImageSetDrawingColor(myImage,"white")>
<!--- Specify the text string and the start point for the text. --->
<cfset ImageDrawText(myImage,"placona.co.uk",80,135,attr)>
<!--- Display the image in a browser. --->
<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


They'll put it on Adobe Labs, as they did with Flex 2.
Cheers
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
Thanks
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