Navigace



Tag of the day: CFIMAGE Captcha (part 2)

as this tag does a whole bunch of things, I decided to show one more usage example.

Today I'm gonna show some captcha:

<!--- CFIMAGE using action captcha with LOW difficulty --->
<cfimage action="captcha" fontSize="18" width="400" height="150"
text="placona" difficulty="low">

Which will display something like this:

<!--- CFIMAGE using action captcha with MEDIUM difficulty --->
<cfimage action="captcha" fontSize="18" width="400" height="150"
text="placona" difficulty="medium">

Displaying something like:

<!--- CFIMAGE using action captcha with HIGH difficulty --->
<cfimage action="captcha" fontSize="18" width="400" height="150"
text="placona" difficulty="high">

Which is my favorite and hardest one.

Hope you like the examples.


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


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
31            

Subscribe

Enter your email address to subscribe to this blog.


Archives By Subject

Adobe (14) [RSS]
Adobe Max 2007 (1) [RSS]
Apollo (2) [RSS]
CFDevcon06 (2) [RSS]
CFDevcon08 (1) [RSS]
CFUNITED 2008 (2) [RSS]
CFUNITED2007 (1) [RSS]
ColdFusion (31) [RSS]
Flex (3) [RSS]
General Techie Stuff (6) [RSS]
Javascript (1) [RSS]
Linux (5) [RSS]
Misc (24) [RSS]
Scotch on th Rocks2007 (1) [RSS]
Tag of the day (2) [RSS]
UKCFUG (1) [RSS]

Tags

adobe coldfusion misc

Recent Entries

No recent entries.

Adds


RSS


Add to Technorati Favorites


SpamStop

This blog is protected by the SpamStop plugin and Project Honeypot.
Handled in almost 2 month:
  • Total suspicious visitors: 50
  • Spammers: 16
  • and 34 where marked as suspicious.
The last shady visitor was here on August 22, 2008

In almost 2 month this blog was visited 42 times by search engines and other harmless crawlers and aggregators.

More info:
SpamStop plugin
Project Honeypot