From 2398453377622f85eec5fab9abebbde96daf1da6 Mon Sep 17 00:00:00 2001 From: esterzhou Date: Mon, 21 Mar 2022 08:42:59 +0800 Subject: [PATCH] update docs Signed-off-by: esterzhou --- .../reference/arkui-ts/ts-canvasrenderingcontext2d.md | 8 ++++---- .../arkui-ts/ts-offscreencanvasrenderingcontext2d.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md b/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md index 9a7c1f3987..3daa690bb4 100644 --- a/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md +++ b/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md @@ -1792,7 +1792,7 @@ Draws an image. createImageData(width: number, height: number): Object -Creates an **ImageData** object. For details, see [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md). +Creates an **ImageData** object. For details, see [ImageData](ts-components-canvas-imagebitmap.md). - Parameters | Name | Type | Mandatory | Default Value | Description | @@ -1805,7 +1805,7 @@ Creates an **ImageData** object. For details, see [ImageData](../reference/arkui createImageData(imageData: Object): Object -Creates an **ImageData** object. For details, see [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md). +Creates an **ImageData** object. For details, see [ImageData](ts-components-canvas-imagebitmap.md). - Parameters | Name | Type | Mandatory | Default Value | Description | @@ -1817,7 +1817,7 @@ Creates an **ImageData** object. For details, see [ImageData](../reference/arkui getImageData(sx: number, sy: number, sw: number, sh: number): Object - Creates an [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md) object with pixels in the specified area on the canvas. + Creates an [ImageData](ts-components-canvas-imagebitmap.md) object with pixels in the specified area on the canvas. - Parameters | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | @@ -1831,7 +1831,7 @@ getImageData(sx: number, sy: number, sw: number, sh: number): Object putImageData(imageData: Object, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void -Puts the [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md) onto a rectangular area on the canvas. +Puts the [ImageData](ts-components-canvas-imagebitmap.md) onto a rectangular area on the canvas. - Parameters | Name | Type | Mandatory | Default Value | Description | diff --git a/en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md b/en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md index 4d0a7c3de4..0792160d1a 100644 --- a/en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md +++ b/en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md @@ -1895,7 +1895,7 @@ Draws an image. createImageData(width: number, height: number): Object -Creates an **ImageData** object based on the specified width and height. For details, see [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md). +Creates an **ImageData** object based on the specified width and height. For details, see [ImageData](ts-components-canvas-imagebitmap.md). - Parameters | Name | Type | Mandatory | Default Value | Description | @@ -1908,19 +1908,19 @@ Creates an **ImageData** object based on the specified width and height. For det createImageData(imageData: ImageData): Object -Creates an **ImageData** object by copying an existing **ImageData** object. For details, see [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md). +Creates an **ImageData** object by copying an existing **ImageData** object. For details, see [ImageData](ts-components-canvas-imagebitmap.md). - Parameters | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | - | imagedata | [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md) | Yes | null | **ImageData** object to copy. | + | imagedata | [ImageData](ts-components-canvas-imagebitmap.md) | Yes | null | **ImageData** object to copy. | ### getImageData getImageData(sx: number, sy: number, sw: number, sh: number): Object -Creates an [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md) object with pixels in the specified area on the canvas. +Creates an [ImageData](ts-components-canvas-imagebitmap.md) object with pixels in the specified area on the canvas. - Parameters | Name | Type | Mandatory | Default Value | Description | @@ -1935,7 +1935,7 @@ Creates an [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md putImageData(imageData: Object, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void -Puts the [ImageData](../reference/arkui-ts/ts-components-canvas-imagebitmap.md) onto a rectangular area on the canvas. +Puts the [ImageData](ts-components-canvas-imagebitmap.md) onto a rectangular area on the canvas. - Parameters | Name | Type | Mandatory | Default Value | Description | -- GitLab