Platforms to show: All Mac Windows Linux Cross-Platform
Back to CSProfileMBS class.
CSProfileMBS.CreateDeviceProfile(deviceClass as string, deviceID as CFUUIDMBS, profileID as Variant) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
deviceClass: ColorSync device class
deviceID: deviceID registered with ColorSync
profileID: profileID registered with ColorSync; pass kColorSyncDeviceDefaultProfileID to get the default profile.
See CSDeviceMBS for more info on deviceClass, deviceID and profileID
Returns nil on failure and Profile object on success.
CSProfileMBS.CreateLink(profileSequence() as dictionary, options as dictionary) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
profileSequence: An array of dictionaries, each one containing a profile object and the information on the usage of the profile in the transform.
Required keys:
kColorSyncProfile: CSProfileMBS
kColorSyncRenderingIntent: String defining rendering intent
kColorSyncTransformTag: String defining which tags to use
Optional key:
kColorSyncBlackPointCompensation: Boolean to enable/disable BPC
options: dictionary with additional public global options (e.g. preferred CMM, quality, etc... It can also contain custom options that are CMM specific.
Returns nil on failure and Profile object on success.
CSProfileMBS.CreateWithData(data as string) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on failure and Profile object on success.
See also:
CSProfileMBS.CreateWithData(data as string, byref error as CFErrorMBS) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on failure and Profile object on success.
See also:
CSProfileMBS.CreateWithDisplayID(DisplayID as Integer) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
displayID: system-wide unique display ID (defined by IOKIt); pass 0 for main display.
Returns nil on failure and Profile object on success.
CSProfileMBS.CreateWithFile(file as folderitem) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on failure and Profile object on success.
See also:
CSProfileMBS.CreateWithFile(file as folderitem, byref error as CFErrorMBS) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on failure and Profile object on success.
See also:
CSProfileMBS.CreateWithName(name as string) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on failure and Profile object on success.
CSProfileMBS.CreateWithURL(url as string) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on failure and Profile object on success.
See also:
CSProfileMBS.CreateWithURL(url as string, byref error as CFErrorMBS) as CSProfileMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on failure and Profile object on success.
See also:
CSProfileMBS.EstimateGammaWithDisplayID(displayID as Integer) as Double
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
displayID: system-wide unique display ID.
See also:
CSProfileMBS.EstimateGammaWithDisplayID(displayID as Integer, byref error as CFErrorMBS) as Double
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
displayID: system-wide unique display ID.
See also:
CSProfileMBS.InstalledProfiles(wait as boolean = false) as dictionary()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | ColorSync | MBS MacCF Plugin | 10.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns an empty array on any error.
Note: When called for the first time this function will return only system profiles because profile iteration is a slow process requiring multiple access to file system.
e.g. you may call it in app.open, so later when you call it again, the list is gathered.
The items on this page are in the following plugins: MBS MacCF Plugin.