1.add screenshot folder & adding gif animation for README.md show

2.StorageTestDiskLruCache.ets & TestAllTypeImageKnifeComponentPage Code optimization

Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
zhoulisheng 2022-04-13 14:39:24 +08:00
parent b5b7aa97f3
commit aa015129d2
5 changed files with 1 additions and 3 deletions

View File

@ -146,9 +146,6 @@ struct StorageTestDiskLruCache {
this.imageKnifeChangeSource(data) this.imageKnifeChangeSource(data)
}) })
} }
if (this.imageKnifeOption.transformations) {
request.transforms(this.imageKnifeOption.transformations)
}
if (this.imageKnifeOption.size) { if (this.imageKnifeOption.size) {
request.setImageViewSize(this.imageKnifeOption.size) request.setImageViewSize(this.imageKnifeOption.size)

View File

@ -15,6 +15,7 @@
import {ImageKnifeComponent} from '@ohos/imageknife' import {ImageKnifeComponent} from '@ohos/imageknife'
import {ImageKnifeOption} from '@ohos/imageknife' import {ImageKnifeOption} from '@ohos/imageknife'
import {RotateImageTransformation} from '@ohos/imageknife' import {RotateImageTransformation} from '@ohos/imageknife'
import {TransformType} from '@ohos/imageknife'
@Entry @Entry
@Component @Component

BIN
screenshot/g1.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

BIN
screenshot/g2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

BIN
screenshot/g3.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 MiB