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];
评论