Giraffe编码动画 GIF 文件
Giraffe 是 iPhone 的编码动画 GIF 文件,使用的 GIF 编码库是 ANGif(UIImagePixelSource.m 和 ExportViewController.m 文件 )
ANGif 示例
ANGifEncoder * encoder = [[ANGifEncoder alloc] initWithOutputFile:@"myFile.gif" size:CGSizeMake(100, 100) globalColorTable:nil];
[encoder addApplicationExtension:[[ANGifNetscapeAppExtension alloc] init]];
[encoder addImageFrame:anImageFrame];
[encoder addImageFrame:anotherImageFrame];
[encoder closeFile];
评论
