I have implemented game application in which i have select some portion of image.Now i want to animate selected portion of image on shake effect?Is it possible?if possible then how to implement give me some idea about that?
A:
Try placing an image view overtop of that portion, capturing the image under it, and animating that? A starting point:
CGRect contextRect = CGRectMake(50, 50, 200, 200);// whatever you need
UIGraphicsBeginImageContext(contextRect.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Kenny Winker
2009-12-11 11:42:31