How can I take a screenshot of an area of ​​the screen using AVFoundation?

I made a camera that uses AVFoundation to take a screenshot of a full screen area. I would like to take a picture of only the 250x250 middle frame of my camera. As shown in the picture below:

enter image description here

I'm interested in the full view displayed on the phone screen, but only the square shown in the picture.

+3
ios swift avfoundation


source to share


No one has answered this question yet

Check out similar questions:

1665
How can I get the UITextField to move upward when there is a keyboard - when starting editing?
1172
How can I disable the selection of a UITableView?
404
Status bar and navigation bar are showing by my viewing restrictions in iOS 7
324
iOS UIImagePickerController - Result of image orientation after loading
56
AVCaptureVideoPreviewLayer orientation - landscape needed
nine
How to make a square picture in iphone using avFoundation like in Instagram app?
7
Custom Camera View Swift iOS 8 iPhone xCode 6.1
1
How to set up video preview to fill image Xcode Swift 3 preview
1
Take a picture automatically
0
how can we make camera capture screen modal in ios swift



All Articles
Loading...
X
Show
Funny
Dev
Pics