layerPointConverted(fromCaptureDevicePoint:)
Converts a point from the coordinate space of the capture device to the coordinate space of the layer.
Declaration
func layerPointConverted(fromCaptureDevicePoint captureDevicePointOfInterest: CGPoint) -> CGPointParameters
- captureDevicePointOfInterest:
A point in capture device coordinates to convert.
Return Value
A point in layer coordinates.
Discussion
A capture device’s focusPointOfInterest and exposurePointOfInterest properties provide a CGPoint value where {0,0} represents the top-left and {1,1} represents the bottom-right of the unrotated image.
The system takes the layer’s frame size and its videoGravity into consideration when making the conversion.