使用CanvasRenderingContext2D的drawImage方法绘制的图片不展示。
private img:ImageBitmap = new ImageBitmap("/components/component/example.jpg")
Canvas(this.context)
.width('100%')
.height('100%')
.backgroundColor('#44ffff00')
.onReady(() =>{
this.context.drawImage( this.img,500,500)
})
参考demo: