nul*_*ray 1 iphone camera image
我希望能够拍摄照片(相机或照片库)并在其上叠加像相框一样的东西,然后将其保存回相机胶卷.我应该研究OpenGL吗?或者,什么?
谢谢你的指点.
除了Quartz,你不需要任何东西.看看CGBitmapContext,CGContext,CGImage,UIImage.还有一个功能可以在相册中存储图像:UIImageWriteToSavedPhotosAlbum
要走的路是:
UIImage从UIImagePickerController.CGBitmapContextCreateCGContextDrawImageCGBitmapContextCreateImage从上下文创建CGImage[UIImage imageWithCGImage:]得到一个UIImage从CGImageUIImageWriteToSavedPhotosAlbum保存图像增强.