6.0.3 - Fix - images.resize 方法传参异常

This commit is contained in:
SuperMonster003
2022-03-31 21:20:24 +08:00
parent a8ce1b9acb
commit c033dbef72
5 changed files with 60 additions and 1 deletions

View File

@@ -235,7 +235,7 @@ module.exports = function (runtime, scope) {
return opt.weakThreshold || def;
},
resize(img, mat, size, fx, fy, interpolation) {
Imgproc.resize(img.mat, mat, this.parseSize(0), fx, fy, Imgproc['INTER_' + (interpolation || 'LINEAR')]);
Imgproc.resize(img.mat, mat, this.parseSize(size), fx, fy, Imgproc['INTER_' + (interpolation || 'LINEAR')]);
},
/**
* @param {com.stardust.autojs.core.image.ImageWrapper} img