I wonder if there's any way to use anti-aliasing in the
final image... the font looks rough.

> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 02, 2008 2:29 PM
> To: CF-Talk
> Subject: RE: cfimage issue
> 
> Hmmm... I couldn't get it to work any way I tried until
> I changed the .gif to a .jpg.  Then it worked perfectly...
> 
> Rick
> 
> > -----Original Message-----
> > From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, August 02, 2008 2:11 PM
> > To: CF-Talk
> > Subject: RE: cfimage issue
> >
> > I haven't worked with imageSetDrawingColor, but I wonder
> > if using the HTML equivalent for red (#ff0000) or the
> > RGB (255,0,0) would make any difference?
> >
> > Rick
> >
> > > -----Original Message-----
> > > From: Victor Moore [mailto:[EMAIL PROTECTED]
> > > Sent: Saturday, August 02, 2008 1:38 PM
> > > To: CF-Talk
> > > Subject: cfimage issue
> > >
> > > Hi,
> > >
> > > I have the following code:
> > > <!---Assign the image file to the testImage variable--->
> > > <cfimage name = "testImage" action="read" source="test.gif"/>
> > > <cfset attr.size = 18 />
> > > <cfset attr.style = "bold" />
> > > <cfset attr.font = "Verdana" />
> > > <cfset imageSetDrawingColor (testImage, "red") />
> > > <cfset imageDrawText (testImage, "Print me...", 10, 20, attr) />
> > > <!---Display the new image--->
> > > <cfimage source="#testImage#" action="writeToBrowser" />
> > >
> > >
> > > The issue is as follows:
> > > if I take out:
> > > imageSetDrawingColor (testImage, "red") the text is displayed properly 
> > > using
> > > a white color,
> > >
> > > but with imageSetDrawingColor (testImage, "red") in, no text is displayed,
> > > just the image background.
> > >
> > > If I create an image manually:
> > > <cfset testImage=ImageNew("",200,200) />
> > >  then the text with the proper color is shown fine, so it seems it's a
> > > problem only when using a real image.
> > >
> > > Is this a limitation or I'm missing something?
> > >
> > > Thanks
> > > Victor
> > >
> > > BTW I;m running CF version 8,0,1,195765
> > >
> > >
> > >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310085
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to