Contents

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]) throws

Parameters

  • imageSourceAuxiliaryDataType:

    The kCGImageAuxiliaryDataType constants corresponding to the semantic segmentation matte being created (see CGImageProperties).

  • 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.

See Also

Creating a segmentation matte