提交 a1d04a3a 编写于 作者: X xu-rui-w

文档修改

Signed-off-by: Nxu-rui-w <xurui101@huawei.com>
上级 29a3fe10
......@@ -245,8 +245,7 @@ image.createPixelMap(color, opts)
region: { size: { height: 1, width: 2 }, x: 0, y: 0 }
}
})
})
.catch(error => {
}).catch(error => {
console.log('error: ' + error);
})
```
......@@ -621,8 +620,7 @@ getImageInfo(index?: number): Promise\<ImageInfo>
imageSourceApi.getImageInfo(0)
.then(imageInfo => {
console.log('getImageInfo succeeded.');
})
.catch(error => {
}).catch(error => {
console.log('getImageInfo failed.');
})
```
......@@ -654,8 +652,7 @@ getImageProperty(key:string, options?: GetImagePropertyOptions): Promise\<string
imageSourceApi.getImageProperty("BitsPerSample")
.then(data => {
console.log('getImageProperty succeeded.');
})
.catch(error => {
}).catch(error => {
console.log('getImageProperty failed.');
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册