---
title: "ABPersonSetImageData(_:_:_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abpersonsetimagedata(_:_:)"
---

# ABPersonSetImageData(_:_:_:)

Sets the image for this person to the given data.

## Declaration

```swift
func ABPersonSetImageData(_ person: ABRecord!, _ imageData: CFData!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
```

```swift
func ABPersonSetImageData(_ person: ABPersonRef!, _ imageData: CFData!) -> Bool
```

## Parameters

- `person`: The person whose image data you wish to set.
- `imageData`: The image data to use as the image for person.

## Return Value

Return Value true if successful, false otherwise.

## See Also

### People

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