未验证 提交 e5721bcc 编写于 作者: 冯泽悟 提交者: Gitee

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

Signed-off-by: N冯泽悟 <fengzewu@huawei.com>
上级 2aa318c0
......@@ -983,7 +983,8 @@ class MySequence {
return true;
}
async unmarshalling(messageSequence) {
await image.unmarshalling(messageSequence).then(async (pixelMap) => {
let pixelParcel = await image.createPixelMap(new ArrayBuffer(96), {size: { height:4, width: 6}});
await pixelParcel.unmarshalling(messageSequence).then(async (pixelMap) => {
this.pixel_map = pixelMap;
})
return true;
......@@ -1041,7 +1042,8 @@ class MySequence {
return true;
}
async unmarshalling(messageSequence) {
await image.unmarshalling(messageSequence).then(async (pixelMap) => {
let pixelParcel = await image.createPixelMap(new ArrayBuffer(96), {size: { height:4, width: 6}});
await pixelParcel.unmarshalling(messageSequence).then(async (pixelMap) => {
this.pixel_map = pixelMap;
})
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册