diff --git a/entry/src/main/ets/MainAbility/pages/storageTestDiskLruCache.ets b/entry/src/main/ets/MainAbility/pages/storageTestDiskLruCache.ets index 24fa508..3719cef 100644 --- a/entry/src/main/ets/MainAbility/pages/storageTestDiskLruCache.ets +++ b/entry/src/main/ets/MainAbility/pages/storageTestDiskLruCache.ets @@ -146,9 +146,6 @@ struct StorageTestDiskLruCache { this.imageKnifeChangeSource(data) }) } - if (this.imageKnifeOption.transformations) { - request.transforms(this.imageKnifeOption.transformations) - } if (this.imageKnifeOption.size) { request.setImageViewSize(this.imageKnifeOption.size) diff --git a/entry/src/main/ets/MainAbility/pages/testAllTypeImageKnifeComponentPage.ets b/entry/src/main/ets/MainAbility/pages/testAllTypeImageKnifeComponentPage.ets index bc11d40..5df34e3 100644 --- a/entry/src/main/ets/MainAbility/pages/testAllTypeImageKnifeComponentPage.ets +++ b/entry/src/main/ets/MainAbility/pages/testAllTypeImageKnifeComponentPage.ets @@ -15,6 +15,7 @@ import {ImageKnifeComponent} from '@ohos/imageknife' import {ImageKnifeOption} from '@ohos/imageknife' import {RotateImageTransformation} from '@ohos/imageknife' +import {TransformType} from '@ohos/imageknife' @Entry @Component diff --git a/screenshot/g1.gif b/screenshot/g1.gif new file mode 100644 index 0000000..2c322db Binary files /dev/null and b/screenshot/g1.gif differ diff --git a/screenshot/g2.gif b/screenshot/g2.gif new file mode 100644 index 0000000..f2b6e98 Binary files /dev/null and b/screenshot/g2.gif differ diff --git a/screenshot/g3.gif b/screenshot/g3.gif new file mode 100644 index 0000000..519c261 Binary files /dev/null and b/screenshot/g3.gif differ