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 69eded1155c4df06a9d23b48ff5836905fce7678..145ac36d239a216bbddfcb366de171937455b010 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;