未验证 提交 42a4940d 编写于 作者: 黄开兴 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-image.md.

Signed-off-by: N黄开兴 <huangkaixing@huawei.com>
上级 24f39ae5
...@@ -1822,9 +1822,9 @@ imageSourceApi.createPixelMapList(decodeOpts, pixelmaplist => { ...@@ -1822,9 +1822,9 @@ imageSourceApi.createPixelMapList(decodeOpts, pixelmaplist => {
}) })
``` ```
### getDelayTimeList<sup>10+</sup> ### getDelayTime<sup>10+</sup>
getDelayTimeList(callback: AsyncCallback<Array\<number>>): void; getDelayTime(callback: AsyncCallback<Array\<number>>): void;
获取图像延迟时间数组,使用callback形式返回结果。 获取图像延迟时间数组,使用callback形式返回结果。
...@@ -1853,14 +1853,14 @@ getDelayTimeList(callback: AsyncCallback<Array\<number>>): void; ...@@ -1853,14 +1853,14 @@ getDelayTimeList(callback: AsyncCallback<Array\<number>>): void;
**示例:** **示例:**
```js ```js
imageSourceApi.getDelayTimeList( delayTimes => { imageSourceApi.getDelayTime( delayTimes => {
console.log('Succeeded in getting delay time.'); console.log('Succeeded in getting delay time.');
}); });
``` ```
### getDelayTimeList<sup>10+</sup> ### getDelayTime<sup>10+</sup>
getDelayTimeList(): Promise<Array\<number>>; getDelayTime(): Promise<Array\<number>>;
获取图像延迟时间数组,使用Promise形式返回结果。 获取图像延迟时间数组,使用Promise形式返回结果。
...@@ -1889,7 +1889,7 @@ getDelayTimeList(): Promise<Array\<number>>; ...@@ -1889,7 +1889,7 @@ getDelayTimeList(): Promise<Array\<number>>;
**示例:** **示例:**
```js ```js
let delayTimes = imageSourceApi.getDelayTimeList(); let delayTimes = imageSourceApi.getDelayTime();
``` ```
### getFrameCount<sup>10+</sup> ### getFrameCount<sup>10+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册