ARTICLE AD BOX
I have one simple application designed for iPad Pro M4 and iPad Air M3, which displays live view using the AVCapture functions. For capturing image usual AVCam code is used. I want to apply custom exposure point of interest. Below is the code to convert device point to layer point.
let point = CGPoint(x: 340, y : 445) let devicePoint = cameraPreview.layer.captureDevicePointConverted(fromLayerPoint: point)then this devicePoint is used to set the exposure point.
And below is the code to retrieve same exposure point when image is captured.
let point = cameraPreview.layer.layerPointConverted(fromCaptureDevicePoint: videoDevice.exposurePointOfInterest)This point should be same while setting, but it is giving different value for y position only. Key point is for cameraPreview layer i am using videoGravity as resizeAspectFill. But if only resize is used then it gives correct values.
Has anyone face this similar issue and is there any solution to this?
3653 silver badges14 bronze badges
Explore related questions
See similar questions with these tags.
