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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

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