未验证 提交 1507af75 编写于 作者: 黄开兴 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-image.md.

Signed-off-by: N黄开兴 <huangkaixing@huawei.com>
上级 2bd54d4f
...@@ -939,6 +939,15 @@ marshalling(sequence: rpc.MessageSequence): void ...@@ -939,6 +939,15 @@ marshalling(sequence: rpc.MessageSequence): void
| ---------------------- | ------------------------------------------------------ | ---- | ---------------------------------------- | | ---------------------- | ------------------------------------------------------ | ---- | ---------------------------------------- |
| sequence | [rpc.MessageSequence](js-apis-rpc.md#messagesequence9) | 是 | 新创建的MessageSequence。 | | sequence | [rpc.MessageSequence](js-apis-rpc.md#messagesequence9) | 是 | 新创建的MessageSequence。 |
**错误码:**
以下错误码的详细介绍请参见[音频错误码](#ResponseCode说明)
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 62980115 | If the input parameter invalid |
| 62980097 | If the ipc error |
**示例:** **示例:**
```js ```js
...@@ -955,7 +964,7 @@ class MySequence { ...@@ -955,7 +964,7 @@ class MySequence {
} }
async unmarshalling(messageSequence) { async unmarshalling(messageSequence) {
await image.unmarshalling(messageSequence).then(async (pixelMap) => { await image.unmarshalling(messageSequence).then(async (pixelMap) => {
this.pixel_map = pixelMap; this.pixel_map = pixelmap;
}) })
return true; return true;
} }
...@@ -987,6 +996,15 @@ unmarshalling(sequence: rpc.MessageSequence): Promise\<PixelMap> ...@@ -987,6 +996,15 @@ unmarshalling(sequence: rpc.MessageSequence): Promise\<PixelMap>
| -------------------------------- | --------------------- | | -------------------------------- | --------------------- |
| Promise\<[PixelMap](#pixelmap7)> | 异步返回Promise对象。 | | Promise\<[PixelMap](#pixelmap7)> | 异步返回Promise对象。 |
**错误码:**
以下错误码的详细介绍请参见[图片错误码](#ResponseCode说明)
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 62980115 | If the input parameter invalid |
| 62980097 | If the ipc error |
**示例:** **示例:**
```js ```js
...@@ -1003,7 +1021,7 @@ class MySequence { ...@@ -1003,7 +1021,7 @@ class MySequence {
} }
async unmarshalling(messageSequence) { async unmarshalling(messageSequence) {
await image.unmarshalling(messageSequence).then(async (pixelMap) => { await image.unmarshalling(messageSequence).then(async (pixelMap) => {
this.pixel_map = pixelMap; this.pixel_map = pixelmap;
}) })
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册