Vdovkin Konstantin
unread,Oct 6, 2009, 9:01:07 AM10/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)+');');
}