Contents

CGImageMetadataCreateFromXMPData(_:)

Creates a collection of metadata tags from the specified XMP data.

Declaration

func CGImageMetadataCreateFromXMPData(_ data: CFData) -> CGImageMetadata?

Parameters

  • data:

    An object containin XMP data. The contents of this object must represent a complete XMP tree. The XMP data may include packet headers.

Return Value

A CGImageMetadata object that contains the parsed metadata information, or NULL if an error occurs. You are responsible for releasing the returned object.

Discussion

Use this function to parse the raw XMP data from an image and build a parseable set of metadata tags. Use the returned object to enumerate the tags or search for individual tags within the collection.