收藏
回答

drawImage

框架类型 问题类型 操作系统 工具版本
小游戏 Bug Windows 1.01.1805150

const ctx=canvas.getContext('2d')

ctx.drawImage(databus.resources.images[this.img],this.x,this.y,this.width,this.height);

发生错误:Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'



回答关注问题邀请回答
收藏
登录 后发表内容