forked from floraachy/ImageKnife
1.PngjTestCasePage add Async interface test
Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
parent
51946fe390
commit
8f394ea07b
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue