I'd like to be able to take a picture (camera or library) and overlay something like a picture frame on it, then save it back to the camera roll. Should I be looking into OpenGL?or, what?
Thanks for the pointers.
I'd like to be able to take a picture (camera or library) and overlay something like a picture frame on it, then save it back to the camera roll. Should I be looking into OpenGL?or, what?
Thanks for the pointers.
You don't need anything except Quartz for that. Look into CGBitmapContext
, CGContext
, CGImage
, UIImage
. There's also a function to store images in the album: UIImageWriteToSavedPhotosAlbum
The way to go is:
UIImage
from UIImagePickerController
.CGBitmapContextCreate
CGContextDrawImage
CGBitmapContextCreateImage
to create a CGImage from the context[UIImage imageWithCGImage:]
to get a UIImage
from the CGImage
UIImageWriteToSavedPhotosAlbum
to save the augmented image.