> ... it may seem totally transparent ;)
In other words, if you have drawn the text and the image still seems *100%*
transparent, you are probably doing something wrong :) Such as forgetting to
set the font color, accidentally drawing the text _outside_ the image
boundaries so it's not visible, etcetera. But it is hard to say without seeing
the code.
Example:
<cfset img = ImageNew("", 100, 50, "argb")>
<!--- deliberately skip font color to make it *seem* 100% transparent on a
white background
<cfset ImageSetDrawingColor(img, "##008000")>
--->
<cfset ImageDrawText(img, "my text", 20, 20 )>
<div style="background-color: #ffffff; border: ff0000 solid 1px">
<cfimage action="writeToBrowser" source="#img#">
</div>
<div style="background-color: #0000ff;">
<cfimage action="writeToBrowser" source="#img#">
</div>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340617
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm