From b504638ef10fead125d407a97aac464924032460 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Fri, 26 Aug 2022 14:22:03 +0800 Subject: [PATCH] update docs against 8508 Signed-off-by: wusongqing --- en/application-dev/media/image.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/en/application-dev/media/image.md b/en/application-dev/media/image.md index 5be7a47cf2..8e6eca8337 100644 --- a/en/application-dev/media/image.md +++ b/en/application-dev/media/image.md @@ -115,6 +115,7 @@ pixelmap.release(()=>{ done(); }) +let path = '/data/local/tmp/test.jpg'; // Create an image source (uri). const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.jpg' @@ -145,7 +146,7 @@ imagePackerApi.release(); ### Decoding Scenario ```js -/data/local/tmp/test.jpg // Set the path for creating an image source. +let path = '/data/local/tmp/test.jpg'; // Set the path for creating an image source. // Create an image source using a path. const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.jpg' @@ -222,7 +223,7 @@ catch(error => { ### Encoding Scenario ```js -/data/local/tmp/test.png // Set the path for creating an image source. +let path = '/data/local/tmp/test.png' // Set the path for creating an image source. // Set the image source. const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.png' -- GitLab