Skip to main content
March 15, 2010
Answered

added text to an image using the ImageDrawText function

  • March 15, 2010
  • 1 reply
  • 494 views

i added text to an image using the ImageDrawText function

my requirment is i wnt to change the text color to red ....how can i?

<cfset attr = StructNew()>
<cfset attr.underline = "yes">
<cfset attr.size = 25>
<cfset attr.style = "bold">

<cfset x = 0>
<cfset x = 50>
<cfset text1 = "The position of the image is represented by (x,y).  Each coordinates multiply with above ratio  to fit the image in   .">

<cfset ImageDrawText(myImage1, text1, 0, 50,attr)>

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    The docs (the page I pointed you to) suggest it was added in CF8.  Does it not work in CF8?

    --

    Adam

    1 reply

    Inspiring
    March 15, 2010

    I've never used imageDrawText(), but in reading the docs for it - http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7951.html - it mentions imageSetDrawingColor().  Did this not work for you?

    --

    Adam

    March 15, 2010

    i think this function (

    imageSetDrawingColor()) in coldfusion 9i using cf 8 .is there any method in cf 8?

    Adam Cameron.Correct answer
    Inspiring
    March 15, 2010

    The docs (the page I pointed you to) suggest it was added in CF8.  Does it not work in CF8?

    --

    Adam