---
title: "captureDevicePointConverted(fromLayerPoint:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturevideopreviewlayer/capturedevicepointconverted(fromlayerpoint:)"
---

# captureDevicePointConverted(fromLayerPoint:)

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

## Declaration

```swift
func captureDevicePointConverted(fromLayerPoint pointInLayer: CGPoint) -> CGPoint
```

## Parameters

- `pointInLayer`: A point in layer coordinates to convert.

## Return Value

Return Value A point in capture device 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 conversion performed by this method takes the layer’s frame size and its videoGravity into consideration.

## See Also

### Converting between coordinate spaces

- [layerPointConverted(fromCaptureDevicePoint:)](avfoundation/avcapturevideopreviewlayer/layerpointconverted(fromcapturedevicepoint:).md)
- [layerRectConverted(fromMetadataOutputRect:)](avfoundation/avcapturevideopreviewlayer/layerrectconverted(frommetadataoutputrect:).md)
- [metadataOutputRectConverted(fromLayerRect:)](avfoundation/avcapturevideopreviewlayer/metadataoutputrectconverted(fromlayerrect:).md)
- [transformedMetadataObject(for:)](avfoundation/avcapturevideopreviewlayer/transformedmetadataobject(for:).md)
