update entry/src/main/ets/pages/testImageKnifeCache.ets.

Signed-off-by: 面条侠 <wangxinxin51@h-partners.com>
This commit is contained in:
面条侠 2024-04-01 09:23:34 +00:00 committed by Gitee
parent f3a864789d
commit 7de28d594d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 4 deletions

View File

@ -33,12 +33,12 @@ let imageKnife: ImageKnife | undefined = ImageKnifeGlobal.getInstance().getImage
@Component
struct testImageKnifeCache {
@State url: string = '';
@State urlGif: string = '';
@State urlGif: string = 'https://octodex.github.com/images/daftpunktocat-guy.gif';
@State urlSvg: string = 'http://1.94.37.200:700/downloadSvgIamge';
@State urlPng: string = 'http://octodex.github.com/images/catstello.png';
@State urlJpg: string = 'https://img0.baidu.com/it/u=2361645450,2439934461&fm=253&fmt=auto&app=138&f=JPEG?w=919&h=500';
@State urlBmp: string = '';
@State urlWebp: string = 'https://img0.baidu.com/it/u=2851883234,283312733&fm=253&fmt=auto&app=138&f=PNG?w=1200&h=392';
@State urlJpg: string = 'https://hbimg.huabanimg.com/cc6af25f8d782d3cf3122bef4e61571378271145735e9-vEVggB';
@State urlBmp: string = 'https://img-blog.csdn.net/20140514114029140';
@State urlWebp: string = 'https://hbimg.huabanimg.com/95a6d37a39aa0b70d48fa18dc7df8309e2e0e8e85571e-x4hhks_fw658/format/webp';
@State imagePixelMap: PixelMap | undefined = undefined;
@State imagePixelMap_: PixelMap | undefined = undefined;
private index_: number = -1;