有无数的应用程序可以做到这一点..。但我很好奇,有什么建议的方式,以产生最高质量的形象。
我想做的事情的例子:
在iPhone的camera.
非常感谢。
发布于 2010-10-18 01:42:45
这是一篇关于在相机上叠加图像的文章。http://mobile-augmented-reality.blogspot.com/2009/09/overlaying-views-on-uiimagepickercontro.html。同样,要旋转和调整胡子大小,请看这个http://icodeblog.com/2010/10/14/working-with-uigesturerecognizers/。在此之后,您可以将下面代码中的结果UIImage用于您需要的任何东西。将self.view更改为摄像机视图。
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenShot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();https://stackoverflow.com/questions/3939631
复制相似问题