globalAlpha and draw image

63 views
Skip to first unread message

Vdovkin Konstantin

unread,
Oct 6, 2009, 9:01:07 AM10/6/09
to google-excanvas
Hi,

I download older versions of excanvas.js, and i saw, that value of
globalAlpha attribute don't take effect for drawImage method. I solve
this problemm by adding following code after 569 line (method
"contextPrototype.drawImage", before "vmlStr.push(' ">' ,
'<g_vml_:image src="', image.src, '"',")

if(parseFloat(this.globalAlpha) != 1.0) {
vmlStr.push('filter: alpha(opacity='+Math.round(parseFloat
(this.globalAlpha)*100)+');');
}
Reply all
Reply to author
Forward
0 new messages