Function

ABPersonCopyImageData

Returns data that contains a picture of a person.

Declaration

iOS
CFDataRef ABPersonCopyImageData(ABRecordRef person);
macOS
CFDataRef ABPersonCopyImageData(ABPersonRef person);

Parameters

person

The person whose image you wish to obtain.

Return Value

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

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

See Also

People

ABCopyArrayOfAllPeople

Returns an array of all the people in the Address Book database.

ABGetMe

Returns the ABPerson object for the logged-in user.

ABPersonCopyParentGroups

Returns an array of groups that a person belongs to.

ABPersonCopyVCardRepresentation

Returns the vCard representation of the person as a data object in vCard format.

ABPersonCreate

Returns a newly created person object.

ABPersonCreateSearchElement

Returns a search element object that specifies a query for records of this type.

ABPersonCreateWithVCardRepresentation

Returns a new ABPerson object initialized with the given data in vCard format.

ABPersonSetImageData

Sets the image for this person to the given data.

ABSetMe

Sets the record that represents the logged-in user.