From e95471e3a5cd6f58a894cf0b905811f271b81dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Mon, 27 Jun 2022 09:31:16 +0000 Subject: [PATCH] =?UTF-8?q?master=EF=BC=9Aupdate=20zh-cn/application-dev/r?= =?UTF-8?q?eference/apis/js-apis-screenshot.md=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E8=AF=B4=E6=98=8E=EF=BC=8C=E9=9C=80=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E7=BF=BB=E8=AF=91=20Signed-off-by:=20@ge-yafang=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/application-dev/reference/apis/js-apis-screenshot.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-screenshot.md b/zh-cn/application-dev/reference/apis/js-apis-screenshot.md index 80fb4d6513..6871f0ce05 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screenshot.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screenshot.md @@ -1,4 +1,5 @@ # 屏幕截图 +本模块提供屏幕截图的能力,截取屏幕时支持设置截取的区域、大小等图像信息。 > **说明:** > @@ -67,7 +68,7 @@ save(options?: ScreenshotOptions, callback: AsyncCallback<image.PixelMap>) | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | | options | [ScreenshotOptions](#screenshotoptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation, displayId四个参数,可以分别设置这四个参数。 | -| callback | AsyncCallback<image.PixelMap> | 是 | 回调返回一个PixelMap对象。 | +| callback | AsyncCallback<image.PixelMap> | 是 | 回调函数。返回一个PixelMap对象。 | **示例:** @@ -113,7 +114,7 @@ save(options?: ScreenshotOptions): Promise<image.PixelMap> | 类型 | 说明 | | ----------------------------- | ----------------------------------------------- | -| Promise<image.PixelMap> | 以Promise形式返回结果,返回image.PixelMap对象。 | +| Promise<image.PixelMap> | Promise对象。返回一个PixelMap对象。 | **示例:** -- GitLab