图像解码器和图像查看器功能

时间:2024-04-23 06:37:40
【文件属性】:

文件名称:图像解码器和图像查看器功能

文件大小:2.2MB

文件格式:ZIP

更新时间:2024-04-23 06:37:40

IOS源码

图像解码器和图像查看器功能,源码YLGIFImage,YLGIFImage 是异步 GIF 图像解码器和图像查看器,支持播放 GIF 图像,而且使用很少的内存。 [lang=objc] YLImageView* imageView = [[YLImageView alloc] initWithFrame:CGRectMake(0, 160, 320, 240)]; [self.view addSubview:imageView]; imageView.image = [YLGIFImage imageNamed:@"joy.gif"]; [/lang] Asynchronized GIF image class and Image viewer supporting play/stop GIF images. It just use very less memory. Following GIF usually will cost almost 600MB memory if it is fully decoded (800x600x389x4 Bytes), but using YLGIFImage, it just use about 30MB memory.


网友评论