views:

1341

answers:

1

I am targeting google chrome. Is it possible to draw transparent images on a canvas? By transparent I mean the drawing the entire image at something like 50% opacity.

A: 

The canvas element has a global alpha attribute that lets you apply partial transparency to anything you draw. See: whatwg ...On further inspection, it looks like that feature doesn't work for images, even though the specification explicitly says that it should. :-(

Eric Mickelsen
Well at least in chrome version 4.1.249.1045 it works.
Mr Bell
@Mr. Bell: +1 to Chrome for that.
Eric Mickelsen