Color profiles
Work with the ICC profiles that describe device and working color spaces.
Overview
A ColorSyncProfile wraps an ICC profile, the description of a device or working color space that ColorSync uses to convert color accurately. Create profiles from a name, a file, or raw ICC data, and read a profile’s tags and header. To round trip a profile through raw ICC bytes, use ColorSyncProfileCopyData(_:_:) to get the bytes you embed in an image or file, and ColorSyncProfileCreate(_:_:) to reconstruct a profile from bytes you extract. On macOS, you can also install a profile for the current user in ~/Library/ColorSync/Profiles, or for everyone on the system in /Library/ColorSync/Profiles. To convert color between profiles, build a ColorSyncTransform. To bridge to Core Graphics, pass a profile to CGColorSpaceCreateWithColorSyncProfile(_:_:).
Topics
Profiling objects
Creating a profile
ColorSyncProfileCreateWithName(_:)ColorSyncProfileCreateWithURL(_:_:)ColorSyncProfileCreateWithURLAndOptions(_:_:_:)ColorSyncProfileCreateMutable()ColorSyncProfileCreateMutableCopy(_:)
Embedding and extracting profiles
Accessing standard RGB profiles
kColorSyncSRGBProfilekColorSyncAdobeRGB1998ProfilekColorSyncDisplayP3ProfilekColorSyncDCIP3ProfilekColorSyncITUR709ProfilekColorSyncITUR2020ProfilekColorSyncROMMRGBProfilekColorSyncACESCGLinearProfilekColorSyncGenericRGBProfile
Accessing generic and special profiles
kColorSyncGenericGrayProfilekColorSyncGenericGrayGamma22ProfilekColorSyncGenericCMYKProfilekColorSyncGenericLabProfilekColorSyncGenericXYZProfilekColorSyncWebSafeColorsProfile
Reading profile data
ColorSyncProfileCopyDescriptionString(_:)ColorSyncProfileCopyHeader(_:)ColorSyncProfileGetURL(_:_:)ColorSyncProfileGetTypeID()
Managing tags and the header
ColorSyncProfileContainsTag(_:_:)ColorSyncProfileCopyTag(_:_:)ColorSyncProfileCopyTagSignatures(_:)ColorSyncProfileRemoveTag(_:_:)ColorSyncProfileSetHeader(_:_:)ColorSyncProfileSetTag(_:_:_:)
Inspecting color characteristics
ColorSyncProfileIsWideGamut(_:)ColorSyncProfileIsPQBased(_:)ColorSyncProfileIsHLGBased(_:)ColorSyncProfileIsMatrixBased(_:)ColorSyncProfileEstimateGamma(_:_:)ColorSyncProfileVerify(_:_:_:)
Finding installed profiles
Installing profiles
ColorSyncProfileInstall(_:_:_:_:)ColorSyncProfileUninstall(_:_:)ColorSyncIterateInstalledProfilesWithOptions(_:_:_:_:_:)COLORSYNC_PROFILE_INSTALL_ENTITLEMENTkColorSyncProfileComputerDomainkColorSyncProfileUserDomain
Accessing profile properties
kColorSyncProfileClasskColorSyncProfileColorSpacekColorSyncProfileDescriptionkColorSyncProfileHeaderkColorSyncProfileIsValidkColorSyncProfilePCSkColorSyncProfileURL