未验证 提交 276f7b83 编写于 作者: O openharmony_ci 提交者: Gitee

!13788 fix image rotate_callback demo

Merge pull request !13788 from 姚朱鹏/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册