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

!13988 【monthly】fix image rotate_callback demo

Merge pull request !13988 from 姚朱鹏/monthly_20221018
...@@ -735,9 +735,15 @@ rotate(angle: number, callback: AsyncCallback\<void>): void ...@@ -735,9 +735,15 @@ rotate(angle: number, callback: AsyncCallback\<void>): void
**示例:** **示例:**
```js ```js
async function Demo() { var angle = 90.0;
await pixelmap.rotate(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> ### rotate<sup>9+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册