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

文档修改

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