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

!18608 modify image code check

Merge pull request !18608 from renhw001/master
...@@ -1599,10 +1599,10 @@ let decodeOpts = { ...@@ -1599,10 +1599,10 @@ let decodeOpts = {
editable: true, editable: true,
desiredSize: { width: 198, height: 202 }, desiredSize: { width: 198, height: 202 },
rotate: 0, rotate: 0,
desiredPixelFormat: RGBA_8888, desiredPixelFormat: 3,
index: 0, index: 0,
}; };
let pixelmaplist = await imageSourceApi.createPixelMapList(decodeOpts); let pixelmaplist = imageSourceApi.createPixelMapList(decodeOpts);
``` ```
### createPixelMapList<sup>10+</sup> ### createPixelMapList<sup>10+</sup>
...@@ -1650,7 +1650,7 @@ let decodeOpts = { ...@@ -1650,7 +1650,7 @@ let decodeOpts = {
editable: true, editable: true,
desiredSize: { width: 198, height: 202 }, desiredSize: { width: 198, height: 202 },
rotate: 0, rotate: 0,
desiredPixelFormat: RGBA_8888, desiredPixelFormat: 3,
index: 0, index: 0,
}; };
imageSourceApi.createPixelMap(decodeOpts, pixelmaplist => { imageSourceApi.createPixelMap(decodeOpts, pixelmaplist => {
...@@ -1697,7 +1697,7 @@ getDelayTime(): Promise<Array\<number>>; ...@@ -1697,7 +1697,7 @@ getDelayTime(): Promise<Array\<number>>;
**示例:** **示例:**
```js ```js
let delayTimes = await imageSourceApi.getDelayTime(); let delayTimes = imageSourceApi.getDelayTime();
``` ```
### getFrameCount<sup>10+</sup> ### getFrameCount<sup>10+</sup>
...@@ -1739,7 +1739,7 @@ getFrameCount(): Promise\<number>; ...@@ -1739,7 +1739,7 @@ getFrameCount(): Promise\<number>;
**示例:** **示例:**
```js ```js
let frameCount = await imageSourceApi.getFrameCount(); let frameCount = imageSourceApi.getFrameCount();
``` ```
### release ### release
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册