HTML5 Canvas Image Crop Tutorial

To crop an image using HTML5 Canvas, we can add six additional arguments to the drawImage() method, sourceXsourceYsourceWidthsourceHeightdestWidth and destHeight.  These arguments define the location and size of a rectangle that we want to cut out of an image.


Reference: www.whatwg.org

邮箱:
密码:

微信扫描二维码捐赠

当前实例由www.100sucai.com整理,
仅作学习参考。感谢大家对本站的支持
web前端交流群:Css Js 网站美工
Image Loader