From ba8fa48c19f57d98753c47a625199811f9bfa6ad Mon Sep 17 00:00:00 2001 From: zhoulisheng <635547767@qq.com> Date: Fri, 25 Mar 2022 15:45:10 +0800 Subject: [PATCH] 1.PngjTestCasePage readPngImageInfo callback first parameter add 'sender' 2.remove console.log print out arraybuffer Signed-off-by: zhoulisheng <635547767@qq.com> --- entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets b/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets index bd63ad1..f021e83 100644 --- a/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets +++ b/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets @@ -63,7 +63,7 @@ struct PngjTestCasePage { Button('测试readPngImageInfo') .onClick(() => { let pngj = new Pngj(); - pngj.readPngImageInfo(this.pngSource, (value) => { + pngj.readPngImageInfo(this.pngSource, (sender, value) => { this.hint1 = JSON.stringify(value); }) }).margin({ top: 5, left: 10 }) @@ -107,7 +107,7 @@ struct PngjTestCasePage { Button('测试readPngImageInfo') .onClick(() => { let pngj = new Pngj(); - pngj.readPngImageInfo(this.pngSource, (value) => { + pngj.readPngImageInfo(this.pngSource, (sender, value) => { this.hint1 = JSON.stringify(value); }) }).margin({ top: 5, left: 10 }) @@ -118,7 +118,6 @@ struct PngjTestCasePage { this.pngSource = sender this.hint2 = 'img with=' + value.width + ' img height=' + value.height + ' img depth=' + value.depth + ' img ctype=' + value.ctype - console.log('png data =' + value.data); }) }).margin({ top: 5, left: 10 }) Button('测试writePngWithStringAsync')