Copy link to clipboard
Copied
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)>
The docs (the page I pointed you to) suggest it was added in CF8. Does it not work in CF8?
--
Adam
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
i think this function (
imageSetDrawingColor()) in coldfusion 9i using cf 8 .is there any method in cf 8?
Copy link to clipboard
Copied
The docs (the page I pointed you to) suggest it was added in CF8. Does it not work in CF8?
--
Adam
Copy link to clipboard
Copied
Great thanks for yoyr reply..................................