From f1c4702d2e3aa3bbf492aa82fbad0e245083565e Mon Sep 17 00:00:00 2001 From: zhongqihong Date: Fri, 1 Sep 2023 08:46:36 +0000 Subject: [PATCH] =?UTF-8?q?Code=20consistency=20modification=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=80=E8=87=B4=E6=80=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhongqihong --- 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 15e663eb67..9adf492ee4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -982,7 +982,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; @@ -1039,7 +1040,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