0

Right now I can take a screen-shot if you will of a part of my app and save it as an image! My code:

UIGraphicsBeginImageContext(CGSizeMake((hiddenText.contentSize.width + 110), (260)));
[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image1 = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

If I do it again later on with a different part of the screen and make an "image2":

UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

How can I then string image1 and image2 into an animated gif and copy that animated gif named image3?

Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
  • 1
    see Giraffe: https://github.com/unixpickle/Giraffe – magma Jan 17 '12 at 04:27
  • Is there a programatic way in objective-c though? Without using someone else's library? Especially with the kind of license he has? – Albert Renshaw Jan 17 '12 at 11:40
  • What do you mean, Albert? _Giraffe_ and _ANGif_ *are* programmatic ways to save animated GIFs, and they're certainly in objective-C. You can download the sources in full, modify them, fork them, do whatever you please with them. You can include them in your project, and it seems to me that his license is pretty liberal. What's the problem? – magma Jan 17 '12 at 14:39
  • It seemed that he wanted credit for the library, perhaps I read it wrong... As for the first question I meant is there anything built in by Apple to allow you to program Gifs without using a library. If his is free and works though I'm all for that! I'm just trying to learn as many ways as possible! I do appreciate the answer though, don't get me wrong! It's a great solution and I'm happy to have at least one answer :) – Albert Renshaw Jan 17 '12 at 21:17
  • Yeah ,using ImageIO framework ,it is possible to create GIF image. – Dhruv Jun 28 '12 at 06:10

0 Answers0