I think you are right.
Should have check with other gif's too.

Thank you

On Sat, Aug 2, 2008 at 3:32 PM, C S <[EMAIL PROTECTED]> wrote:

> >Yep, you are right. Works with jpg but not with gif or png.
>
> It may have to do with the color pallete of the gif you are using.  For
> example if you run the following code, the text appears red on the Google
> logo. Presumably because the logo's color palette contains red, or a very
> similar color.  The text on the other images appears gold.  I believe that
> is caused by dithering, which will approximate the closest match to "red" in
> the image's color palette. With the last two images, the closest match seems
> to be a gold color.
>
> <cfset testDrawingColor("Google Logo", "
> http://www.google.com/intl/en_ALL/images/logo.gif";)>
> <cfset testDrawingColor("HouseOfFusion logo", "
> http://www.houseoffusion.com/_/hof120.gif";)>
> <cfset testDrawingColor("HouseOfFusion Banner", "
> http://www.houseoffusion.com/images/nav/houseOFfusion.gif";)>
>
> <cffunction name="testDrawingColor">
>        <cfargument name="text" type="string">
>        <cfargument name="imageURL" type="string">
> <!---Assign the image file to the testImage variable--->
>        <cfimage name = "testImage" action="read"
> source="#arguments.imageURL#"/>
>        <cfset attr.size = 18 />
>        <cfset attr.style = "bold" />
>        <cfset attr.font = "Verdana" />
>        <cfset imageSetDrawingColor (testImage, "red") />
>        <cfset imageDrawText (testImage, arguments.text, 10, 20, attr) />
>        <!---Display the new image--->
>        <cfimage source="#testImage#" action="writeToBrowser" /><br>
> </cffunction>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:310098
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to