iphone - Capture camera view and onverlay in an image -
i open camera view , place image overlay. want save both overlay , camera view's image 1 image. achieved using uigetscreenimage(). apple forbid options ? takepicture capture camera data the overlay. merging overlay image takepicture bit slow.
you have merge them, , shouldn't take more second or two. like(untested, should give idea):
uigraphicsbeginimagecontext(mycapturedimage.size); [mycapturedimage drawatpoint:cgpointzero]; //you might need use drawinrect [overlayimage drawatpoint:cgpointzero]; uiimage *combinedimage = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext();
Comments
Post a Comment