提交 c2de442c 编写于 作者: Z zhangxinyue

bug fix

Signed-off-by: Nzhangxinyue <zhangxinyue38@huawei.com>
上级 1fe227c8
......@@ -40,7 +40,6 @@ struct GlobalExample {
this.testImageBitmapSize();
this.testOffscreenCanvas();
this.testImageData();
this.testImage();
})
}.width('100%').height('100%')
}
......@@ -66,14 +65,4 @@ struct GlobalExample {
console.log("imageData_width=" + imageData.width);
console.log("imageData_height=" + imageData.height);
}
testImage() {
var image = this.offContext.drawImage(this.img, 0, 0, 100, 100)
.onload(() => {
})
.onerror(() => {
});
console.log("img_width=" + img.width);
console.log("img_height=" + img.height);
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册