提交 7d9e12a2 编写于 作者: H hekun

add the interface

Signed-off-by: Nhekun <hekun18@huawei.com>
上级 3aa3c305
// @ts-nocheck
/** /**
* Copyright (c) 2021 Huawei Device Co., Ltd. * Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
...@@ -50,6 +50,7 @@ struct Canvas2Example { ...@@ -50,6 +50,7 @@ struct Canvas2Example {
this.offContext.fillStyle = '#0000ff'; this.offContext.fillStyle = '#0000ff';
this.offContext.fillRect(20, 160, 150, 100); this.offContext.fillRect(20, 160, 150, 100);
let image = this.offContext.transferToImageBitmap(); let image = this.offContext.transferToImageBitmap();
this.context.imageSmoothingQuality = "high";
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.
先完成此消息的编辑!
想要评论请 注册