CGImageDestinationAddAuxiliaryDataInfo(_:_:_:)
Sets the auxiliary data, such as mattes and depth information, that accompany the image.
Declaration
func CGImageDestinationAddAuxiliaryDataInfo(_ idst: CGImageDestination, _ auxiliaryImageDataType: CFString, _ auxiliaryDataInfoDictionary: CFDictionary)Parameters
- idst:
The image destination to modify.
- auxiliaryImageDataType:
The type of auxiliary information you want to add. For a list of possible values, see Individual Image Properties.
- auxiliaryDataInfoDictionary:
A dictionary that contains the Kcgimageauxiliarydatainfodata, Kcgimageauxiliarydatainfodatadescription, and Kcgimageauxiliarydatainfometadata keys. Use those keys to describe the depth or matte information.
Discussion
Call this method after you add an image to the image destination. This method adds the specified depth or matte information to the most recently added image.