From e5721bcc08e0f77d3f8561ff1a501a0d1cfe8669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E6=B3=BD=E6=82=9F?= Date: Fri, 1 Sep 2023 08:20:51 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-image.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 冯泽悟 --- zh-cn/application-dev/reference/apis/js-apis-image.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index 69eded1155..145ac36d23 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -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; -- GitLab