---
title: "layerPointConverted(fromCaptureDevicePoint:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturevideopreviewlayer/layerpointconverted(fromcapturedevicepoint:)"
---

# layerPointConverted(fromCaptureDevicePoint:)

Converts a point from the coordinate space of the capture device to the coordinate space of the layer.

## Declaration

```swift
func layerPointConverted(fromCaptureDevicePoint captureDevicePointOfInterest: CGPoint) -> CGPoint
```

## Parameters

- `captureDevicePointOfInterest`: A point in capture device coordinates to convert.

## Return Value

Return Value A point in layer coordinates.

## Discussion

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.

## See Also

### Converting between coordinate spaces

- [captureDevicePointConverted(fromLayerPoint:)](avfoundation/avcapturevideopreviewlayer/capturedevicepointconverted(fromlayerpoint:).md)
- [layerRectConverted(fromMetadataOutputRect:)](avfoundation/avcapturevideopreviewlayer/layerrectconverted(frommetadataoutputrect:).md)
- [metadataOutputRectConverted(fromLayerRect:)](avfoundation/avcapturevideopreviewlayer/metadataoutputrectconverted(fromlayerrect:).md)
- [transformedMetadataObject(for:)](avfoundation/avcapturevideopreviewlayer/transformedmetadataobject(for:).md)
