2009-12-11 71 views
0

我已经实现了游戏应用程序,其中我选择了图像的某些部分。现在我想在动作效果上对图像的选定部分进行动画处理?是否有可能?如果可能,那么如何实施给我关于这个的一些想法?如何为图像的选定部分设置动画

+0

是曼西对于未来,你应该先接受的答案,那么你会得到进一步的答案,否则没有人会给你正确的答...干杯曼西 – Sabby 2011-09-09 09:33:20

回答

0

尝试将图像视图放在该部分的顶端,捕获它下面的图像,并将其动画化?一个出发点:

CGRect contextRect = CGRectMake(50, 50, 200, 200);// whatever you need 
    UIGraphicsBeginImageContext(contextRect.size); 

    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; 
    UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); 
    UIGraphicsEndImageContext(); 

http://www.iphonedevsdk.com/forum/iphone-sdk-development/2353-possible-make-screenshot-programmatically-2.html

相关问题