From ef8ba740ab74a739ddf28001833e10055153ccaa Mon Sep 17 00:00:00 2001 From: fengzewu Date: Tue, 27 Sep 2022 21:20:15 +0800 Subject: [PATCH] fix code Signed-off-by: fengzewu --- zh-cn/application-dev/reference/apis/js-apis-image.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 5fae947f92..c09be0fb80 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -1033,7 +1033,8 @@ createImageSource(fd: number, options: SourceOptions): ImageSource **示例:** ```js -const imageSourceApi = image.createImageSource(0); +var sourceOptions = { sourceDensity: 120 }; +const imageSourceApi = image.createImageSource(0, sourceOptions); ``` ## image.createImageSource9+ @@ -1109,7 +1110,7 @@ CreateIncrementalSource(buf: ArrayBuffer): ImageSource ```js const buf = new ArrayBuffer(96); -const imageSourceIncrementalSApi = image.CreateIncrementalSource(buf); +const imageSourceIncrementalSApi = image.createIncrementalSource(buf); ``` ## image.CreateIncrementalSource9+ @@ -1137,7 +1138,7 @@ CreateIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource ```js const buf = new ArrayBuffer(96); -const imageSourceIncrementalSApi = image.CreateIncrementalSource(buf); +const imageSourceIncrementalSApi = image.createIncrementalSource(buf); ``` ## ImageSource -- GitLab