开发者

Save a camera photo with an overlayed image - iphone SDK

开发者 https://www.devze.com 2022-12-26 10:32 出处:网络
I think this should be simple but I am having some difficulty implementing it. I take a photo from the camera, the user can then move and scale it.

I think this should be simple but I am having some difficulty implementing it.

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

They then choose "use" and they get a preview of their image.

Now what I want to do is overlay an image on top of this preview image - which is also ok.

But the part I am having difficulty is then I want to save the photo taken WITH the image that is over it into the library. I just have a UIView with my overlay image about the UIView where my camera photo is previewed. I guess I just need to take a screen capture of these? I don't want to loose resolution OR end up with my UI buttons etc in the final image.

Any sugge开发者_Python百科stions or links would be really useful. Thanks :-)


try using

CGImageRef screen = UIGetScreenImage();
UIImage* screenImage = [UIImage imageWithCGImage:screen];
CGImageRelease(screen); 
0

精彩评论

暂无评论...
验证码 换一张
取 消