未验证 提交 31bdeee3 编写于 作者: L limeng 提交者: Gitee

fix the problem of example.

Signed-off-by: Nlimeng <limeng208@huawei.com>
上级 134aa020
...@@ -55,7 +55,7 @@ struct OffscreenCanvasPage { ...@@ -55,7 +55,7 @@ struct OffscreenCanvasPage {
.onReady(() => { .onReady(() => {
var offContext = this.offCanvas.getContext("2d", this.settings) var offContext = this.offCanvas.getContext("2d", this.settings)
offContext.fillStyle = '#CDCDCD' offContext.fillStyle = '#CDCDCD'
offContext.fillRect(0, 0, offCanvas.width, 150) offContext.fillRect(0, 0, this.offCanvas.width, 150)
var image = this.offCanvas.transferToImageBitmap() var image = this.offCanvas.transferToImageBitmap()
this.context.setTransform(1, 0, 0, 1, 50, 200) this.context.setTransform(1, 0, 0, 1, 50, 200)
this.context.transferFromImageBitmap(image) this.context.transferFromImageBitmap(image)
...@@ -89,7 +89,7 @@ struct OffscreenCanvasPage { ...@@ -89,7 +89,7 @@ struct OffscreenCanvasPage {
.onReady(() => { .onReady(() => {
var offContext = this.offCanvas.getContext("2d", this.settings) var offContext = this.offCanvas.getContext("2d", this.settings)
offContext.fillStyle = '#CDCDCD' offContext.fillStyle = '#CDCDCD'
offContext.fillRect(0, 0, 100, offCanvas.height) offContext.fillRect(0, 0, 100, this.offCanvas.height)
var image = this.offCanvas.transferToImageBitmap() var image = this.offCanvas.transferToImageBitmap()
this.context.setTransform(1, 0, 0, 1, 50, 200) this.context.setTransform(1, 0, 0, 1, 50, 200)
this.context.transferFromImageBitmap(image) this.context.transferFromImageBitmap(image)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册