我希望能够拍摄一张照片(相机或图书馆)并在其上覆盖类似相框的东西,然后将其保存回相机胶卷。我应该研究OpenGL吗?或者,什么?
感谢您的指点。
你不需要任何东西,除了 Quartz。查看CGBitmapContext, CGContext, CGImage, UIImage. 还有一个在相册中存储图像的功能:UIImageWriteToSavedPhotosAlbum
要走的路是:
UIImage从UIImagePickerController. _CGBitmapContextCreateCGContextDrawImageCGBitmapContextCreateImage从上下文创建 CGImage[UIImage imageWithCGImage:]_UIImageCGImageUIImageWriteToSavedPhotosAlbum保存增强的图像。