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: 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?