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


source to share





All Articles