未验证 提交 b3466bf4 编写于 作者: O openharmony_ci 提交者: Gitee

!10153 自动化测试修复

Merge pull request !10153 from 冯泽悟/master
......@@ -1667,7 +1667,7 @@ let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelmap) => {
let packOpts = { format:"image/jpeg", quality:98 }
imagePackerApi.packing(pixelMapApi, packOpts, data => {
imagePackerApi.packing(pixelmap, packOpts, data => {
console.log('Succeeded in packing the image.');
})
})
......@@ -1702,7 +1702,7 @@ let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelmap) => {
let packOpts = { format:"image/jpeg", quality:98 }
imagePackerApi.packing(pixelMapApi, packOpts)
imagePackerApi.packing(pixelmap, packOpts)
.then( data => {
console.log('Succeeded in packing the image.');
}).catch(error => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册