Color devices
Manage the color profiles assigned to displays, printers, scanners, and cameras.
Overview
ColorSync tracks the color devices attached to the system and the profiles assigned to each. Register a device, enumerate its profiles, and read or set the factory and custom profiles that describe how it reproduces color. Displays are a color device too: you can find a display’s profile from its display ID and read its gamma and transfer tables. Device profiles are themselves ColorSyncProfile objects. See Color profiles.
Topics
Registering and enumerating devices
ColorSyncDeviceCopyDeviceInfo(_:_:)ColorSyncDeviceProfileIterateCallbackColorSyncDeviceSetCustomProfiles(_:_:_:)ColorSyncIterateDeviceProfiles(_:_:)ColorSyncProfileCreateDeviceProfile(_:_:_:)ColorSyncRegisterDevice(_:_:_:)ColorSyncUnregisterDevice(_:_:)
Identifying device classes
kColorSyncCameraDeviceClasskColorSyncDeviceClasskColorSyncDisplayDeviceClasskColorSyncPrinterDeviceClasskColorSyncScannerDeviceClass
Describing devices
kColorSyncDeviceIDkColorSyncDeviceDescriptionkColorSyncDeviceDescriptionskColorSyncDeviceModeDescriptionkColorSyncDeviceModeDescriptionskColorSyncDeviceHostScopekColorSyncDeviceUserScope
Describing device profiles
kColorSyncDeviceDefaultProfileIDkColorSyncDeviceProfileIDkColorSyncDeviceProfileURLkColorSyncDeviceProfileIsCurrentkColorSyncDeviceProfileIsDefaultkColorSyncDeviceProfileIsFactorykColorSyncProfileHostScopekColorSyncProfileUserScope
Accessing custom and factory profiles
Observing device notifications
kColorSyncDeviceProfilesNotificationkColorSyncDeviceRegisteredNotificationkColorSyncDeviceUnregisteredNotificationkColorSyncDisplayDeviceProfilesNotificationkColorSyncRegistrationUpdateWindowServer
Reading display gamma and profiles
ColorSyncProfileCreateWithDisplayID(_:)ColorSyncProfileEstimateGammaWithDisplayID(_:_:)ColorSyncProfileGetDisplayTransferFormulaFromVCGT(_:_:_:_:_:_:_:_:_:_:)ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)