提交 48241f92 编写于 作者: Y yaozhupeng

fix rotate_callback demo

Signed-off-by: Nyaozhupeng <yaozhupeng@huawei.com>
上级 7cc2d293
......@@ -735,9 +735,15 @@ rotate(angle: number, callback: AsyncCallback\<void>): void
**示例:**
```js
async function Demo() {
await pixelmap.rotate(90.0);
}
var angle = 90.0;
pixelmap.rotate(angle, (err) => {
if (err) {
console.error("Failed to set rotation.");
return;
} else {
console.log("Succeeded in setting rotation.");
}
})
```
### rotate<sup>9+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册