Save Image Camera Overlay Image - iphone SDK

I think it should be easy, but it's hard for me to implement it.

I take a photo from the camera, then the user can move and scale it.

Then they select "use" and they get a preview of their image.

Now what I want to do is overlay the image on top of this preview image, which is also fine.

But I have a difficulty, so I want to save a photo taken with the image above it in the library. I only have a UIView with my overlay image about the UIView where my camera is being viewed. Think I just need to take a screenshot? I don't want to lose the resolution OR end up with user interface buttons, etc. In the final image.

Any suggestions or links would be really helpful. Thank: -)

+1
source share
1 answer

try using

CGImageRef screen = UIGetScreenImage();
UIImage* screenImage = [UIImage imageWithCGImage:screen];
CGImageRelease(screen); 
+2
source

Source: https://habr.com/ru/post/1769685/


All Articles