![](/img/trans.png)
[英]how to detect if image from photo library was taken by iPhone camera or imported
[英]How to create a single image from an overlayed image and a picture taken with iPhone?
有無數的應用程序可以做到這一點...但我很好奇為了產生最高質量的圖像存在什么建議的方式。
我要做的事情的例子:
非常感謝。
這是一篇關於在相機上疊加圖像的文章。 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();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.