From 7d9e12a2b53fec81391c05f867b02dbdc96095e9 Mon Sep 17 00:00:00 2001 From: hekun Date: Thu, 30 Mar 2023 15:58:42 +0800 Subject: [PATCH] add the interface Signed-off-by: hekun --- .../entry/src/main/ets/MainAbility/pages/canvas2.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/canvas2.ets b/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/canvas2.ets index 4ded364a6..969b1aefc 100644 --- a/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/canvas2.ets +++ b/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/canvas2.ets @@ -1,4 +1,4 @@ -// @ts-nocheck + /** * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -50,6 +50,7 @@ struct Canvas2Example { this.offContext.fillStyle = '#0000ff'; this.offContext.fillRect(20, 160, 150, 100); let image = this.offContext.transferToImageBitmap(); + this.context.imageSmoothingQuality = "high"; this.context.transferFromImageBitmap(image); } -- GitLab