提交 b504638e 编写于 作者: W wusongqing

update docs against 8508

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 d8d6fa32
......@@ -115,6 +115,7 @@ pixelmap.release(()=>{
done();
})
let path = '/data/local/tmp/test.jpg';
// Create an image source (uri).
const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.jpg'
......@@ -145,7 +146,7 @@ imagePackerApi.release();
### Decoding Scenario
```js
/data/local/tmp/test.jpg // Set the path for creating an image source.
let path = '/data/local/tmp/test.jpg'; // Set the path for creating an image source.
// Create an image source using a path.
const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.jpg'
......@@ -222,7 +223,7 @@ catch(error => {
### Encoding Scenario
```js
/data/local/tmp/test.png // Set the path for creating an image source.
let path = '/data/local/tmp/test.png' // Set the path for creating an image source.
// Set the image source.
const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.png'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册