RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

Gerald,
Thank you almighty Digital Pack Rat smiling
Really Thank you. I haven't opened it yet, but I am on my way.
Terry

-Original Message-
From: Gerald Guido [mailto:gerald.gu...@gmail.com] 
Sent: Sunday, February 19, 2012 6:55 PM
To: cf-talk
Subject: Re: Adding a border to text using CFImage




~|
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:349957
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

Leigh,
I removed the 2 lines and pasted in the example lines with a semi colon at
the end.
The result is a solid image, but no stroke.
Here's what I added:
   // 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;

Can you see anything wrong?

Terry



~|
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:349958
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

Gerald,

I cannot believe all the things this cfc is supposed to do, but it keeps
throwing errors about missing arguments and I can't find anything wrong.

Missing argument name


C:\inetpub\wwwroot\1wordart\index.cfm: line 105


103 : Output:

104 : p

105 :   #wordart.getArt(text=CFWheels is the future and the future is
written in ColdFusion, 

106 :   options={style=simple, font=Trebuchet MS,
fontstyle=bolditalic, fontSize=30, wrapWidth=350})#

107 : /p

 

I sure hope someone else has better success as this is a cool tool if it
works.

Terry



~|
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:349959
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Gerald Guido

That sucks. Sorry about that. I have no idea. Like I said. I just found
it :)

G!

On Mon, Feb 20, 2012 at 9:35 AM, Terry Troxel terry.tro...@gmail.comwrote:


 Gerald,

 I cannot believe all the things this cfc is supposed to do, but it keeps
 throwing errors about missing arguments and I can't find anything wrong.

 Missing argument name


 C:\inetpub\wwwroot\1wordart\index.cfm: line 105


 103 : Output:

 104 : p

 105 :   #wordart.getArt(text=CFWheels is the future and the future is
 written in ColdFusion,

 106 :   options={style=simple, font=Trebuchet MS,
 fontstyle=bolditalic, fontSize=30, wrapWidth=350})#

 107 : /p



 I sure hope someone else has better success as this is a cool tool if it
 works.

 Terry



 

~|
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:349960
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFScript Book

2012-02-20 Thread Robert Rhodes

Hello to all.

Are there any CFScript books out there?  I ordered this onw but it was a
complete joke.  A total waste of money:
http://www.barnesandnoble.com/w/cfscript-lambert-m-surhone/1026883099.

All suggestions welcome.

-RR


~|
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:349961
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fusion Reactor and Fusion Analytics Kick Ass

2012-02-20 Thread Raymond Camden

On Sun, Feb 19, 2012 at 10:03 AM, Dan Baughman dan.baugh...@gmail.com wrote:

 Thats great, but I guess outside of being cool none of that really provides
 any value.

Have you even looked at FusionReactor and FusionAnalytics? I find it
_incredible_ you would say these tools don't provide any value, but I
guess to each his own.

-Ray

~|
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:349962
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Chrome Display Issue

2012-02-20 Thread Mosh Teitelbaum

All:

A bit off-topic as it's not strictly a CF question but I hope you'll forgive 
me...

I have some content that is dynamically generated by CF (the on-topic part) 
that essentially groups items by category.  The page lists each category and 
the first 6 items for each and, if the category has more than 6 items, also 
shows a More link that, when clicked, expands the category's listing to show 
all of its items.  You can see an example of this at 
http://www.bjpa.org/Publications/topicArea.cfm .  This displays and works 
properly in Firefox, MSIE, and Opera but in Chrome (and Safari) the page 
displays properly but the More link doesn't work.  Mousing over it doesn't 
change the background color or mouse cursor like in the other browsers and 
clicking on it does nothing.  In fact, you can't even select the text.

Any ideas?  Thanks in advance.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/



~|
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:349963
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFScript Book

2012-02-20 Thread Cameron Childress

On Mon, Feb 20, 2012 at 10:48 AM, Robert Rhodes rrhode...@gmail.com wrote:

 Are there any CFScript books out there?  I ordered this onw but it was a
 complete joke.  A total waste of money:
 http://www.barnesandnoble.com/w/cfscript-lambert-m-surhone/1026883099.


Is there a reason you want to only learn CFScript?  The CFML language has
so many tags and many ways of doing things.  Learning only CFScript may not
serve you well. Attempting to use all tags or all script is probably
not the best goal IMHO.

Having said that, the Adobe docs are a good starting point for learning
CFScript, but if you want more than that I'd look at a regular ole CF
Book like CFWACK, and then look for a CFScript equivalent for what you're
doing if you really need/want one.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
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:349964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Fusion Reactor and Fusion Analytics Kick Ass

2012-02-20 Thread Brook Davies

My thoughts exactly...

-Original Message-
From: Raymond Camden [mailto:raymondcam...@gmail.com] 
Sent: February-20-12 8:24 AM
To: cf-talk
Subject: Re: Fusion Reactor and Fusion Analytics Kick Ass


On Sun, Feb 19, 2012 at 10:03 AM, Dan Baughman dan.baugh...@gmail.com
wrote:

 Thats great, but I guess outside of being cool none of that really 
 provides any value.

Have you even looked at FusionReactor and FusionAnalytics? I find it
_incredible_ you would say these tools don't provide any value, but I guess
to each his own.

-Ray



~|
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:349965
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Chrome Display Issue

2012-02-20 Thread Paul Giesenhagen

It has to do with the topicArea_1(2or3) div is over the top of the 
moreLessTab div ... which is holding you're a href ... so it's not able to 
see it ...

I wasn't able to go any further to try some things out ... but that may get you 
started ...

If you don't have a resolve, I'll look at it again.

Thanks

Paul Giesenhagen
Quill Design
http://www.quilldesign.com

-Original Message-
From: Mosh Teitelbaum [mailto:mosh.teitelb...@evoch.com] 
Sent: Monday, February 20, 2012 11:19 AM
To: cf-talk
Subject: Chrome Display Issue


All:

A bit off-topic as it's not strictly a CF question but I hope you'll forgive 
me...

I have some content that is dynamically generated by CF (the on-topic part) 
that essentially groups items by category.  The page lists each category and 
the first 6 items for each and, if the category has more than 6 items, also 
shows a More link that, when clicked, expands the category's listing to show 
all of its items.  You can see an example of this at 
http://www.bjpa.org/Publications/topicArea.cfm .  This displays and works 
properly in Firefox, MSIE, and Opera but in Chrome (and Safari) the page 
displays properly but the More link doesn't work.  Mousing over it doesn't 
change the background color or mouse cursor like in the other browsers and 
clicking on it does nothing.  In fact, you can't even select the text.

Any ideas?  Thanks in advance.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/





~|
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:349966
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Chrome Display Issue

2012-02-20 Thread Mosh Teitelbaum

Paul:

Thanks for the quick reply.  I had actually tried using z-indexes to change the 
depth of the elements but that didn't work.  However, after reading your reply, 
I went back to the CSS and realized that while the moreLessTab div is set as a 
float, I never specifically defined its positioning.  Once I added in 
position: relative;, the link works as expected in all browsers.

Thanks for the assist.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/


Paul Giesenhagen wrote:
 It has to do with the topicArea_1(2or3) div is over the top of the 
 moreLessTab
 div ... which is holding you're a href ... so it's not able to see it ...

~|
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:349967
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Leigh

Terry,   

I do not see anything obviously wrong. Other than the very last line, it looks 
the same. Here is the complete test code I used on CF8/CF9.  The result is 
green text with a purple-ish border

-Leigh


cfscript
   width  = 330;
   height = 150;
   text   = Crossfade;
    
   // Create a new image that supports transparency
   transparentImage = ImageNew(, width, height, argb);
   graphics = ImageGetBufferedImage(transparentImage).createGraphics(); 
   
   // Add rendering hints to smooth text edges
   RenderingHints = createObject(java, java.awt.RenderingHints);
   graphics.setRenderingHint(  RenderingHints.KEY_ANTIALIASING,
   RenderingHints.VALUE_ANTIALIAS_ON
    );
   graphics.setRenderingHint(   RenderingHints.KEY_RENDERING,
   RenderingHints.VALUE_RENDER_QUALITY
    );

   // Create a graphical representation of the text
   Font = createObject(java, java.awt.Font);
   textFont = Font.init(Arial, Font.PLAIN, width / 5 );
   fontContext = graphics.getFontRenderContext();
   layout = createObject(java, java.awt.font.TextLayout).init(text, 
textFont, fontContext);

   // Center text outline 
   transX = (width/2) - (layout.getBounds().getWidth()/2);
   transY = (height/2) + layout.getDescent();
   transform = createObject(java, java.awt.geom.AffineTransform).init();
   transform.setToTranslation( 5, 100 );

   // Draw the text outline onto the image
   shape = layout.getOutline(transform);
   
   // fill 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

~|
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:349968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFScript Book

2012-02-20 Thread Pete Freitag

For what its worth I have a cfscript cheatsheet here:
http://www.petefreitag.com/cheatsheets/coldfusion/cfscript/

It lists much but certainly not all of what you need to know to use
cfscript. Feedback, suggestions welcome.

--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ - ColdFusion Consulting  Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?




On Mon, Feb 20, 2012 at 12:25 PM, Cameron Childress camer...@gmail.comwrote:


 On Mon, Feb 20, 2012 at 10:48 AM, Robert Rhodes rrhode...@gmail.com
 wrote:

  Are there any CFScript books out there?  I ordered this onw but it was a
  complete joke.  A total waste of money:
  http://www.barnesandnoble.com/w/cfscript-lambert-m-surhone/1026883099.
 

 Is there a reason you want to only learn CFScript?  The CFML language has
 so many tags and many ways of doing things.  Learning only CFScript may not
 serve you well. Attempting to use all tags or all script is probably
 not the best goal IMHO.

 Having said that, the Adobe docs are a good starting point for learning
 CFScript, but if you want more than that I'd look at a regular ole CF
 Book like CFWACK, and then look for a CFScript equivalent for what you're
 doing if you really need/want one.

 -Cameron

 --
 Cameron Childress
 --
 p:   678.637.5072
 im: cameroncf
 facebook http://www.facebook.com/cameroncf |
 twitterhttp://twitter.com/cameronc |
 google+ https://profiles.google.com/u/0/117829379451708140985


 

~|
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:349969
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF 10 beta available on Adobe Labs

2012-02-20 Thread Gerald Guido

w00t!!!  Go get some.
http://labs.adobe.com/technologies/coldfusion10/

It dropped on Friday btw. Ben Nadel has some blarg posts
http://www.bennadel.comhttp://www.bennadel.com/blog/2331-ColdFusion-10-Beta-Closures-And-Function-Expressions-Part-I.htm
http://www.bennadel.com/blog/2331-ColdFusion-10-Beta-Closures-And-Function-Expressions-Part-I.htm

And Ray has a vid new features on Adobe TV
http://tv.adobe.com/watch/max-2011-develop/whats-next-in-coldfusion/

G!

-- 
Gerald Guido
http://www.myinternetisbroken.com


~|
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:349970
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF 10 beta available on Adobe Labs

2012-02-20 Thread Casey Dougall - Uber Website Solutions

On Mon, Feb 20, 2012 at 1:29 PM, Gerald Guido gerald.gu...@gmail.comwrote:

 w00t!!!  Go get some.
 http://labs.adobe.com/technologies/coldfusion10/

http://www.adobe.com/cfusion/entitlement/index.cfm?event=customloc=EN_USsku=FS0002946e=labs_coldfusion10
AND ColdFusion Builder 2.0.1 beta

Gee, talk about being stingy with beta Id's 2.0.1


~|
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:349971
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

This is the complete code which displays the text perfectly in GREEN with NO
border.
I am at a loss.
Terry

cfscript
   width  = 330;
   height = 150;
   text   = Crossfade;

   // Create a new image that supports transparency
   transparentImage = ImageNew(, width, height, argb);
   graphics = ImageGetBufferedImage(transparentImage).createGraphics(); 
   
   // Add rendering hints to smooth text edges
   RenderingHints = createObject(java, java.awt.RenderingHints);
   graphics.setRenderingHint(  RenderingHints.KEY_ANTIALIASING,
   RenderingHints.VALUE_ANTIALIAS_ON
);
   graphics.setRenderingHint(   RenderingHints.KEY_RENDERING,
   RenderingHints.VALUE_RENDER_QUALITY
);

   // Create a graphical representation of the text
   Font = createObject(java, java.awt.Font);
   textFont = Font.init(Arial, Font.PLAIN, width / 5 );
   fontContext = graphics.getFontRenderContext();
   layout = createObject(java, java.awt.font.TextLayout).init(text,
textFont, fontContext);

   // Center text outline 
   transX = (width/2) - (layout.getBounds().getWidth()/2);
   transY = (height/2) + layout.getDescent();
   transform = createObject(java, java.awt.geom.AffineTransform).init();
   transform.setToTranslation( 5, 100 );

   // Draw the text outline onto the image
   shape = layout.getOutline(transform);
   
   // fill 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( 5 );
   graphics.dispose();
/cfscript
cfoutput  
!--- display raw image --- 
cfimage source=#transparentImage# action=writeToBrowser  
!--- display WITH background --- 
div style=background-color: ##80; width: #width#; height=#height#;  
cfimage source=#transparentImage# action=writeToBrowser  
/div  
/cfoutput


~|
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:349972
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Leigh

You are missing the code that draws the actual border. 

   // create a thin border 

   stroke = createObject(java, java.awt.BasicStroke).init( 1 );
   graphics.setStroke( stroke );  // ** this line is missing
   graphics.setColor( Color.decode(##80) ); //** this line is missing
   graphics.draw( shape ); //**  this line is missing
   graphics.dispose();

(See my previous response for a complete working exa

~|
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:349973
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

Thanks Leigh,
I finally got it all pieced together and it works as you said it would.
Is there anywhere I can find documentation that will allow me to resize the
fontsize and the stroke width and maybe make the stroke go outside instead
of inside?

Obviously I am not a java pro like you and I do not want to become more of a
pain then I already am.
But this is really great.
Terry



~|
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:349974
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Leigh

 I finally got it all pieced together and it works as you said it would.

Well the code may have gotten a bit garbled somewhere, adding to the confusion. 
Sorry about that.


 maybe make the stroke go outside instead of inside?
What do you mean by outside?  


The font and stroke width can be changed through the constructor.  (Btw, I am 
no expert myself. I just spent a lot of time reviewing the javadocs ;-)  
http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html#Font%28java.lang.String,%20int,%20int%29

ie textFont = Font.init(Arial, Font.PLAIN, **fontSize);


http://docs.oracle.com/javase/6/docs/api/java/awt/BasicStroke.html#BasicStroke%28float%29

ie stroke = createObject(java, java.awt.BasicStroke).init( *width

~|
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:349975
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Gerald Guido


 I finally got it all pieced together and it works as you said it would.
 Is there anywhere I can find documentation that will allow me to resize the
 fontsize and the stroke width and maybe make the stroke go outside instead
 of inside?


Check out the Alagad Image Component

http://www.alagad.com/projects.imageComponent

I have used it in the past, pre-CFImage.  I know that it works on CF7 and I
just tested it and wrote text to an image using CF 9. If anything it will
provide examples of manipulating fonts.

Sorry about the goose chase earlier.

HTH,
G!

On Mon, Feb 20, 2012 at 5:19 PM, Terry Troxel terry.tro...@gmail.comwrote:


 Thanks Leigh,
 I finally got it all pieced together and it works as you said it would.
 Is there anywhere I can find documentation that will allow me to resize the
 fontsize and the stroke width and maybe make the stroke go outside instead
 of inside?

 Obviously I am not a java pro like you and I do not want to become more of
 a
 pain then I already am.
 But this is really great.
 Terry



 

~|
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:349976
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

Well when I play with the numbers in the code it seems if I raise the init
setting it widens the stroke/border, but the thickness seems to go inwards
instead of outwards from the outside edge of the text.
Is that a better explanation?
His code is awesome, I just would like to know how to size things and
understand it better as I am no java programmer, just a half-assed
Coldfusion scripter that enjoys the heck out of this stuff.

Terry

-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: Monday, February 20, 2012 2:56 PM
To: cf-talk
Subject: Re: Adding a border to text using CFImage


 I finally got it all pieced together and it works as you said it would.

Well the code may have gotten a bit garbled somewhere, adding to the
confusion. Sorry about that.


 maybe make the stroke go outside instead of inside?
What do you mean by outside?  


The font and stroke width can be changed through the constructor.  (Btw, I
am no expert myself. I just spent a lot of time reviewing the javadocs ;-)  
http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html#Font%28java.lang
.String,%20int,%20int%29

ie textFont = Font.init(Arial, Font.PLAIN, **fontSize);


http://docs.oracle.com/javase/6/docs/api/java/awt/BasicStroke.html#BasicStro
ke%28float%29

ie stroke = createObject(java, java.awt.BasicStroke).init( *width



~|
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:349977
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Leigh

  Is that a better explanation?

Yep. If you think about how the border effect is created, the behavior makes 
sense. Basically you are working with a glyph, or a shape of the text. Stroking 
affects how that shape is filled. It does not change the shape itself. So the 
thickness has to move inward (so to speak).

I am no artist. But I think the effect you are looking for is often achieved by 
overlaying a smaller shape over a slightly larger one. Similar to creating a 
shadow effect.  It should be possible to apply the same concept to text. But I 
would have to look around to see if that is the right way to approach it.


Btw: It goes without saying if there is an existing library that supports text 
borders, by all means use it ;-) No reason to reinvent the wheel. But it is fun 
talking about how all this stuff works internally  ;-)


-Lei

~|
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:349978
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

Lei-
Exactly right.
In Photoshop its done with layers and stroke and the stroke can be
Inside, outside and middle.

I just sent a request to sam...@codecurry.com asking if his wordart.cfc is
still active and open source.
Hopefully he will reply as the documentation as to what it can do is awesome
and would be a worthwhile
Tool to have in your toolbox.

Terry


~|
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:349979
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Leigh

 Check out the Alagad Image Component


Yeah, I was going to suggest taking a look at existing image components. Do you 
know if it supports text borders? Nothing jumped out at me from a brief look at 
the documentation.

-Leigh


~|
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:349980
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


emailing a cfchart?

2012-02-20 Thread Les Irvin

Is it possible to have cfchart code (format=png or jpg) within a
cfmail tag and have the graphic actually show up in the email? I can't
seem to manage it...
Thanks in advance for any help,
Les

~|
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:349981
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding a border to text using CFImage

2012-02-20 Thread Leigh



 I just sent a request asking if his wordart.cfc is
 still active and open source.

Great. I would be curious if there are any updates.  

BTW: Did you try using the non-cfwheels syntax  ie wordArt.getArt()? 
Because that worked fine for me.


-Lei

~|
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:349982
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFScript Book

2012-02-20 Thread Robert Rhodes

Hi Cameron.  I know CF very well. I been coding in it for many years.  But,
I admit, I am a little tagged out.

Cfscript feels more elegant, and as I learn more and more javascript, it
seems a natural time to try to get completely up to speed on cfscript.

I do wish Adobe would fill out CF so that one could write mostly in
cfscript and avoid cf tags altogether, if desired.  It would also help when
I end up around small-minded coders who scoff at CF merely because of the
tags.

Yes, I have answers for those types, like how I can produce the same apps
they can, but in 1/3 the time, or how Adobe puts a lot of development into
the language, which gets us big upgrades every few years -- or how we can
get a live body on the phone when we need one.

But still, I really want to be a cfscripter, and I am looking for a path to
make that happen.  There must be at least a few chapters in some book out
there somewhere, no?

Pete, thank you very much for the cheat sheet. That will come in handy.

-RR

On Mon, Feb 20, 2012 at 12:25 PM, Cameron Childress camer...@gmail.comwrote:


 On Mon, Feb 20, 2012 at 10:48 AM, Robert Rhodes rrhode...@gmail.com
 wrote:

  Are there any CFScript books out there?  I ordered this onw but it was a
  complete joke.  A total waste of money:
  http://www.barnesandnoble.com/w/cfscript-lambert-m-surhone/1026883099.
 

 Is there a reason you want to only learn CFScript?  The CFML language has
 so many tags and many ways of doing things.  Learning only CFScript may not
 serve you well. Attempting to use all tags or all script is probably
 not the best goal IMHO.

 Having said that, the Adobe docs are a good starting point for learning
 CFScript, but if you want more than that I'd look at a regular ole CF
 Book like CFWACK, and then look for a CFScript equivalent for what you're
 doing if you really need/want one.

 -Cameron

 --
 Cameron Childress
 --
 p:   678.637.5072
 im: cameroncf
 facebook http://www.facebook.com/cameroncf |
 twitterhttp://twitter.com/cameronc |
 google+ https://profiles.google.com/u/0/117829379451708140985


 

~|
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:349983
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: emailing a cfchart?

2012-02-20 Thread Dave Watts

 Is it possible to have cfchart code (format=png or jpg) within a
 cfmail tag and have the graphic actually show up in the email? I can't
 seem to manage it...

Not directly, by default, because what CFCHART generates is a
time-limited URL to a servlet that produces the image, rather than an
actual image file. You can use the NAME attribute of CFCHART to
generate a CF variable that contains the image, store that to a file,
then serve that instead.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
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:349984
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: emailing a cfchart?

2012-02-20 Thread Dan G. Switzer, II

Dave,

I haven't had a chance to check this, but does CF10 no longer provide the
ability to generate static images for charts?

It looks like everything is canvas or Flash-based, which is going to be
problematic for emailing or using in a PDF--both of which I use.

Any idea?

-Dan

On Monday, February 20, 2012, Dave Watts wrote:


  Is it possible to have cfchart code (format=png or jpg) within a
  cfmail tag and have the graphic actually show up in the email? I can't
  seem to manage it...

 Not directly, by default, because what CFCHART generates is a
 time-limited URL to a servlet that produces the image, rather than an
 actual image file. You can use the NAME attribute of CFCHART to
 generate a CF variable that contains the image, store that to a file,
 then serve that instead.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

 

~|
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:349985
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Adding a border to text using CFImage

2012-02-20 Thread Terry Troxel

Leigh,
All I did was to run the index as is.
I do not know where to change the syntax which is probably why I am getting
errors.
Terry 




~|
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:349986
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm