Watch a demo of different values of the drawImage() method.
Or click a specific value to see the result:
const c = document.getElementById('myCanvas'); const ctx = c.getContext('2d'); var img = document.createElement('img'); img.src = 'img_the_scream.jpg'; img.onload = function () { var ctx = c.getContext('2d'); ctx.drawImage(img,90,130,50,60,10,10,50,30); }