demo报错修改

This commit is contained in:
tsm 2024-04-29 23:36:23 +08:00
parent 6e2a2ce20f
commit b848e4bc6b
1 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,8 @@
import { FitCenter, ImageKnifeComponent,
ImageKnifeData,
ImageKnifeGlobal,
ImageKnifeOption, RequestOption } from '@ohos/libraryimageknife'
ImageKnifeOption,
RequestOption } from '@ohos/libraryimageknife'
import { BusinessError } from '@ohos.base'
import { fitter, sampleNone } from '@ohos/imageknife';
@ -104,9 +105,9 @@ struct DownsamplingPage {
Column() {
Column() {
Text("ImageKnifeComponent用法").fontColor(Color.Gray).fontSize(16);
ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption2 })
.width(200)
.height(200)
// ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption2 })
// .width(200)
// .height(200)
}.margin({ top: 10 });
}.margin({ bottom: 30 });
}