javascript - How can I delimit a transparent area on png image when I'm using HTML 5 Canvas? -


i'm having issues when i'm trying delimit area in html5 canvas, have img: enter image description here

i want transparency in white parts of img, not on img. i'm drawing img in part of code:

    this.draw = function(){         context.save();         context.drawimage(sniperscoop, 0, 0, w,h);               context.restore();     } 

that possible using html 5 canvas/javascript ?

thanks!

if you, i'd edit image program gimp , cut out white part. there reason not way?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -