From 897c310668aea701aec8f9dfe008ea17b26d563f Mon Sep 17 00:00:00 2001 From: tsm <2418639820@qq.com> Date: Mon, 29 Apr 2024 22:14:51 +0800 Subject: [PATCH] =?UTF-8?q?demo=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/DownsamplingPage.ets | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/DownsamplingPage.ets b/entry/src/main/ets/pages/DownsamplingPage.ets index 7215f85..1715e5f 100644 --- a/entry/src/main/ets/pages/DownsamplingPage.ets +++ b/entry/src/main/ets/pages/DownsamplingPage.ets @@ -12,8 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { ImageKnifeComponent, ImageKnifeOption } from '@ohos/libraryimageknife' +import { FitCenter, ImageKnifeComponent, + ImageKnifeData, + ImageKnifeOption, RequestOption } from '@ohos/libraryimageknife' import { BusinessError } from '@ohos.base' +import { DownsampleNone } from '@ohos/imageknife/src/main/ets/components/imageknife/Downsampling/DownsampleStartegy'; + let mRotate: number = 0; let mUrl = $r('app.media.pngSample'); @Entry