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.

enter image description here

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); 

https://jsfiddle.net/ylf5erut/2/


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -