语法一: context.drawImage(img,x,y);
语法二: context.drawImage(img, x, y, width, height);
语法三: context.drawImage(img, sx, sy, swidth, sheight, x, y, widht, height);
- img 规定要使用的图像、画布或视频
 - sx 可选。开始剪切的x坐标位置。
 - sy 可选。开始剪切的 y 坐标位置。
 - swidth 可选。被剪切图像的宽度。
 - sheight 可选。被剪切图像的高度。
 - x 在画布上放置图像的 x 坐标位置。
 - y 在画布上放置图像的 y 坐标位置。
 - width 可选。要使用的图像的宽度。(伸展或缩小图像)
 - height 可选。要使用的图像的高度。(伸展或缩小图像)
 
1  | <style>  | 
