init(fromImageSourceAuxiliaryDataType:dictionaryRepresentation:)
Returns a new semantic segmentation matte instance from auxiliary image information in an image file.
Declaration
convenience init(fromImageSourceAuxiliaryDataType imageSourceAuxiliaryDataType: CFString, dictionaryRepresentation imageSourceAuxiliaryDataInfoDictionary: [AnyHashable : Any]) throwsParameters
- imageSourceAuxiliaryDataType:
The
kCGImageAuxiliaryDataTypeconstants corresponding to the semantic segmentation matte being created (seeCGImageProperties). - imageSourceAuxiliaryDataInfoDictionary:
A dictionary of primitive semantic segmentation matte information obtained from Cgimagesourcecopyauxiliarydatainfoatindex(_:_:_:).
Return Value
A new semantic segmentation matte instance, or nil if the auxiliary data info dictionary is malformed.