html5 - Canvas drawImage: Trying to crop and stretch -
i've tried bunch of alternatives, , each approach has not produced desired result of stretching image new sx end of canvas.

i'm going assume image shows want happen, not happening. can of in drawimage call. don't typically see parameters explained way, think want do.
ctx.drawimage(imgsrc, cropx, cropy, cropwidth, cropheight, drawatx, drawaty, drawwidth, drawheight);
Comments
Post a Comment