【文件属性】:
文件名称:rectimage:将图像裁剪为矩形
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-01 18:35:32
JavaScript
正像
将图像裁剪为矩形
安装
$ npm install rectimage
用法
var rectimage = require ( 'rectimage' )
var newImage = rectimage ( image )
newImage . onload = function ( ) { /* */ }
或返回画布
var rectimage = require ( 'rectimage' )
var canvas = rectimage ( image , { canvas : true } )
document . body . appendChild ( canvas )
自定义长度
var rectimage = require ( 'rectimage' )
var newImage = rectimage ( image , { newLength :
【文件预览】:
rectimage-master
----.travis.yml(217B)
----index.js(1KB)
----package.json(925B)
----test()
--------rectimage.js(0B)
----LICENSE(1KB)
----.gitignore(218B)
----CHANGELOG.md(170B)
----README.md(1KB)
----.jshintrc(378B)
----.editorconfig(222B)
----.gitattributes(11B)