From 8f394ea07b9a91a1b44bb4c97b9da160c3e761c4 Mon Sep 17 00:00:00 2001 From: zhoulisheng <635547767@qq.com> Date: Fri, 25 Mar 2022 15:31:23 +0800 Subject: [PATCH] 1.PngjTestCasePage add Async interface test Signed-off-by: zhoulisheng <635547767@qq.com> --- entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets b/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets index 3138976..bd63ad1 100644 --- a/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets +++ b/entry/src/main/ets/MainAbility/pages/pngjTestCasePage.ets @@ -114,7 +114,7 @@ struct PngjTestCasePage { Button('测试readPngImageAsync') .onClick(() => { let pngj = new Pngj(); - pngj.readPngImage(this.pngSource, (sender, value) => { + pngj.readPngImageAsync(this.pngSource, (sender, value) => { this.pngSource = sender this.hint2 = 'img with=' + value.width + ' img height=' + value.height + ' img depth=' + value.depth + ' img ctype=' + value.ctype @@ -124,7 +124,7 @@ struct PngjTestCasePage { Button('测试writePngWithStringAsync') .onClick(() => { let pngj = new Pngj(); - pngj.writePngWithString('hello world', this.pngSource, (sender, value) => { + pngj.writePngWithStringAsync('hello world', this.pngSource, (sender, value) => { this.pngSource = sender FileUtils.getInstance().createFileProcess( this.rootFolder + '/pngj', @@ -137,7 +137,7 @@ struct PngjTestCasePage { Button('测试writePngAsync') .onClick(() => { let pngj = new Pngj(); - pngj.writePng(this.pngSource, (sender, value) => { + pngj.writePngAsync(this.pngSource, (sender, value) => { this.pngSource = sender FileUtils.getInstance().createFileProcess( this.rootFolder + '/pngj',