imagerotatesize
v1.0.3
Published
图片顺时针旋转计算图片新的尺寸高度和宽度。 ### 用法 npm install imageRotateSize
Downloads
1
Maintainers
Readme
imageRotateSize
图片顺时针旋转计算图片新的尺寸高度和宽度。
用法
npm install imagerotatesize
const imageRotateSize = require('imagerotatesize');
let {width, height} = imageRotateSize(oldWidth, oldHeight, angle);
####例如: let {width, height} = imageRotateSize(720, 280, 30); // 顺时针30度
console.log(width: ${width}, height: ${height}
); // width: 763, height: 602