From aebb50016d777ca8506ad2eab19068b6080486c7 Mon Sep 17 00:00:00 2001 From: hwx1119949 <3052854011@qq.com> Date: Tue, 12 Jul 2022 11:21:11 +0800 Subject: [PATCH] change getPixelMap return value Signed-off-by: hwx1119949 <3052854011@qq.com> Change-Id: I06c6cc83b661dc78099dc01843e6d589002faf62 --- api/@internal/component/ets/canvas.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/canvas.d.ts b/api/@internal/component/ets/canvas.d.ts index 45f68e8070..9adf9790fd 100644 --- a/api/@internal/component/ets/canvas.d.ts +++ b/api/@internal/component/ets/canvas.d.ts @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +import image from '../../../@ohos.multimedia.image' /** * Filling style algorithm, which determines whether a point is within or outside the path. The following * two configurations are supported: @@ -705,7 +705,7 @@ declare class CanvasRenderer extends CanvasPath { * @param sh The height of the rectangular area of the PixelMap to be extracted. * @since 8 */ - getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap; + getPixelMap(sx: number, sy: number, sw: number, sh: number): image.PixelMap; /** * Draws the specified ImageData object onto the canvas -- Gitee