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 15e663eb67d9bd63ad7b10f19d8a42ed74133565..9adf492ee4d8498d9d713dc074d1873f71f41972 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;