Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

added text to an image using the ImageDrawText function

Guest
Mar 15, 2010 Mar 15, 2010

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)>

451
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 15, 2010 Mar 15, 2010

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

--

Adam

Translate
LEGEND ,
Mar 15, 2010 Mar 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 15, 2010 Mar 15, 2010

i think this function (

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 15, 2010 Mar 15, 2010

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

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 15, 2010 Mar 15, 2010
LATEST

Great thanks for yoyr reply..................................

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources