ColorSyncCreateCodeFragment(_:_:)
Creates a code fragment from a sequence of profiles.
Declaration
func ColorSyncCreateCodeFragment(_ profileSequence: CFArray!, _ options: CFDictionary!) -> Unmanaged<CFTypeRef>!Parameters
- profileSequence:
An array of dictionaries, each one containing a profile object and the information on the usage of the profile in the code fragment.
- options:
A dictionary with additional options as in the case of creating a
ColorSyncTransform.
Return Value
A CFTypeRef representing a ColorSync code fragment, or NULL in case of failure.
Discussion
Each dictionary in profileSequence contains a profile object and information on the usage of the profile in the code fragment.
Required keys:
kColorSyncRenderingIntent: A
CFStringRefdefining the rendering intent.kColorSyncTransformTag: A
CFStringRefdefining which tags to use.
Optional key:
kColorSyncBlackPointCompensation: A
CFBooleanRefto enable or disable black point compensation.kColorSyncExtendedRange: A
CFBooleanRefto enable or disable extended range; disabling implies floating point conversions.