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:310081
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