From 41160b00a384b090a2e98ffc6d0adce9a6a549b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Wed, 6 Apr 2022 03:05:30 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-screenshot.md. Signed-off-by: @ge-yafang --- .../application-dev/reference/apis/js-apis-screenshot.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 f6407d49f7..3e06326e13 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screenshot.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screenshot.md @@ -18,8 +18,8 @@ import screenshot from '@ohos.screenshot'; | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------- | ---- | ------------------------------------------------------------ | -| screenRect | [Rect](#Rect) | 否 | 表示截取图像的区域,不传值默认为全屏。| -| imageSize | [Size](#Size) | 否 | 表示截取图像的大小,不传值默认为全屏。| +| screenRect | [Rect](#rect) | 否 | 表示截取图像的区域,不传值默认为全屏。| +| imageSize | [Size](#size) | 否 | 表示截取图像的大小,不传值默认为全屏。| | rotation | number | 否 | 表示截取图像的旋转角度,当前仅支持输入值为0,默认值为0。| @@ -62,7 +62,7 @@ save(options?: ScreenshotOptions, callback: AsyncCallback<image.PixelMap>) | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | - | options | [ScreenshotOptions](#ScreenshotOptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 | + | options | [ScreenshotOptions](#screenshotoptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 | | callback | AsyncCallback<image.PixelMap> | 是 | 回调返回一个PixelMap对象。 | - 示例 @@ -102,7 +102,7 @@ save(options?: ScreenshotOptions): Promise<image.PixelMap> | 参数名 | 类型 | 必填 | 说明 | | ------- | --------------------------------------- | ---- | ------------------------------------------------------------ | - | options | [ScreenshotOptions](#ScreenshotOptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 | + | options | [ScreenshotOptions](#screenshotoptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 | - 返回值 -- GitLab