JavaScript-Load-Image

如何将图片显示为canvas

https://github.com/blueimp/JavaScript-Load-Image/blob/master/js/load-image-scale.js

https://github.com/blueimp/JavaScript-Load-Image/blob/master/js/load-image-scale.js#L106

// Determines if the target image should be a canvas element:
  loadImage.hasCanvasOption = function (options) {
    return options.canvas || options.crop || !!options.aspectRatio
  }

 

posted @ 2019-07-04 17:45  ChuckLu  阅读(983)  评论(0编辑  收藏  举报