Navigace



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">

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


Related Blog Entries

Comments
Big Kev's Gravatar 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?
# Posted By Big Kev | 11/28/06 4:20 PM
Marcos Placona's Gravatar 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.

Cheers
# Posted By Marcos Placona | 11/29/06 2:14 AM
Sana's Gravatar 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

Thanks
# Posted By Sana | 11/29/06 3:32 AM
Marcos Placona's Gravatar 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
# Posted By Marcos Placona | 11/29/06 8:16 AM

Disclaimer

This is a personal weblog. The opinions expressed here represent my own and not those of my employer.

Search


Calendar

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

Subscribe

Enter your email address to subscribe to this blog.


Archives By Subject

A Wee Dram 2008 (1) [RSS]
Adobe (18) [RSS]
Adobe Max 2007 (1) [RSS]
Apollo (2) [RSS]
Book Review (2) [RSS]
Books (2) [RSS]
CFDevcon06 (2) [RSS]
CFDevcon08 (2) [RSS]
CFUNITED 2008 (3) [RSS]
CFUNITED2007 (1) [RSS]
ColdFusion (36) [RSS]
Flex (3) [RSS]
Fusebox (2) [RSS]
General Techie Stuff (9) [RSS]
Javascript (4) [RSS]
JQuery (2) [RSS]
Linux (6) [RSS]
Misc (28) [RSS]
Railo (1) [RSS]
Scotch on th Rocks2007 (1) [RSS]
Tag of the day (2) [RSS]
UKCFUG (1) [RSS]

Tags

adobe coldfusion misc

Recent Entries

I'm alive!

Adds


RSS


Add to Technorati Favorites


SpamStop

This blog is protected by the SpamStop plugin and Project Honeypot.
Handled in just over 4 months:
  • Total suspicious visitors: 94
  • Harvesters: 1
  • Spammers: 47
  • and 46 where marked as suspicious.
The last shady visitor was here on November 20, 2008

In just over 4 months this blog was visited 59 times by search engines and other harmless crawlers and aggregators.

More info:
SpamStop plugin
Project Honeypot