---
title: "ABPersonCopyImageData(_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abpersoncopyimagedata(_:)"
---

# ABPersonCopyImageData(_:)

Returns data that contains a picture of a person.

## Declaration

```swift
func ABPersonCopyImageData(_ person: ABRecord!) -> Unmanaged<CFData>!
```

```swift
func ABPersonCopyImageData(_ person: ABPersonRef!) -> Unmanaged<CFData>!
```

## Parameters

- `person`: The person whose image you wish to obtain.

## Return Value

Return Value The data representing an image of person. You are responsible for releasing this object.

## Discussion

Discussion The returned data is in a QuickTime-compatible format. To create an image from it, use the NSImage method init(data:).

## See Also

### People

- [ABCopyArrayOfAllPeople(_:)](addressbook/abcopyarrayofallpeople(_:).md)
- [ABGetMe(_:)](addressbook/abgetme(_:).md)
- [ABPersonCopyParentGroups(_:)](addressbook/abpersoncopyparentgroups(_:).md)
- [ABPersonCopyVCardRepresentation(_:)](addressbook/abpersoncopyvcardrepresentation(_:).md)
- [ABPersonCreate()](addressbook/abpersoncreate().md)
- [ABPersonCreateSearchElement(_:_:_:_:_:)](addressbook/abpersoncreatesearchelement(_:_:_:_:_:).md)
- [ABPersonCreateWithVCardRepresentation(_:)](addressbook/abpersoncreatewithvcardrepresentation(_:).md)
- [ABPersonSetImageData(_:_:_:)](addressbook/abpersonsetimagedata(_:_:).md)
- [ABSetMe(_:_:)](addressbook/absetme(_:_:).md)
