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