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')