captureDevicePointConverted(fromLayerPoint:)
Converts a point from layer coordinates to the coordinate space of the capture device.
Declaration
func captureDevicePointConverted(fromLayerPoint pointInLayer: CGPoint) -> CGPointParameters
- pointInLayer:
A point in layer coordinates to convert.
Return Value
A point in capture device 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 conversion performed by this method takes the layer’s frame size and its videoGravity into consideration.