I "FrameMarker" You take a screenshot.
But while pictures are stored, and sisters have not seen any white image, the shutter will sound even more.
CGRect rect = [[UIScreen mainScreen] bounds];
UIGraphicsBeginImageContext (rect.size);
UIApplication * app = [UIApplication sharedApplication];
[app.keyWindow.layer renderInContext: UIGraphicsGetCurrentContext ()];
UIImage * img = UIGraphicsGetImageFromCurrentImageContext ();
UIGraphicsEndImageContext (); UIImageWriteToSavedPhotosAlbum (img, nil, nil, nil);
To resolve this problem do not know what to do.
Please Help
Thank you.
Hi DaProd,
I'm not clear what you mean by "The screen size is not adjusted" since that is not mentioned in the thread.
The code sample provided implements the screen capture as a single indivisible function, but has three phases: 1) read the buffer 2) convert the buffer 3) write the buffer. If you want to reduce the blocking of the render loop by this action then do steps 2) and 3) on a different thread.
This is getting a bit 'off-topic' for AR - I'd recommend looking at other iOS/OpenGL forums for further info about this - you'll find more examples.