提交 e86fe2d5 编写于 作者: Z zhang-xiaobo1997

Modify image interface

Signed-off-by: Nzhang-xiaobo1997 <tony.zhangxiaobo@huawei.com>
上级 d17bc999
......@@ -470,7 +470,7 @@ createImageSource(uri: string): ImageSource
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ------ | ---- | ---------------------------------- |
| uri | string | 是 | 图片路径,当前仅支持本地绝对路径。 |
| uri | string | 是 | 图片路径,当前仅支持应用沙箱路径。 |
**返回值:**
......@@ -481,7 +481,8 @@ createImageSource(uri: string): ImageSource
**示例:**
```js
const imageSourceApi = image.createImageSource('/data/local/tmp/test.jpg')
let path = this.context.getApplicationContext().fileDirs + "test.jpg";
const imageSourceApi = image.createImageSource(path);
```
## image.createImageSource<sup>7+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册