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
Creates a device profile.

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
Creates a link profile.

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
Creates a profile with the data in the given string.

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
Creates a profile with the data in the given string.

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
Creates a new profile with the given display.

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
Creates a new profile based on the given file.

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
Creates a new profile based on the given file.
Example
dim file as FolderItem = GetFolderItem("/System/Library/ColorSync/Profiles/Generic XYZ Profile.icc", FolderItem.PathTypeShell)
dim e as CFErrorMBS
dim p as new CSProfileMBS(file, e)

MsgBox p.Description

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
Creates a profile with the given name.
Example
dim s as string = CSProfileMBS.kColorSyncGenericXYZProfile
dim c as CSProfileMBS = CSProfileMBS.CreateWithName(s)
MsgBox c.Description

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
Creates a new profile based on the file at the given URL.

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
Creates a new profile based on the file at the given URL.

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
Calculates the estimated gamma value for the given display.

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
Calculates the estimated gamma value for the given display.

displayID: system-wide unique display ID.

See also:

CSProfileMBS.InstalledProfiles 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
Queries the list of installed profiles.
Example
dim a(-1) as Dictionary = CSProfileMBS.InstalledProfiles
dim lines(-1) as string

for each d as Dictionary in a
lines.Append d.Value(CSProfileMBS.kColorSyncProfileDescription)
next

MsgBox Join(lines,EndOfLine)

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.

CSProfileMBS.kColorSyncAdobeRGB1998Profile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the predefined profile names.

CSProfileMBS.kColorSyncGenericCMYKProfile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the predefined profile names.

CSProfileMBS.kColorSyncGenericGrayGamma22Profile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the predefined profile names.

CSProfileMBS.kColorSyncGenericGrayProfile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the predefined profile names.

CSProfileMBS.kColorSyncGenericLabProfile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the predefined profile names.

CSProfileMBS.kColorSyncGenericRGBProfile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the predefined profile names.

CSProfileMBS.kColorSyncGenericXYZProfile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the predefined profile names.

CSProfileMBS.kColorSyncProfileClass as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

CSProfileMBS.kColorSyncProfileColorSpace as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

CSProfileMBS.kColorSyncProfileDescription as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

CSProfileMBS.kColorSyncProfileHeader as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

CSProfileMBS.kColorSyncProfileMD5Digest as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

CSProfileMBS.kColorSyncProfilePCS as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

CSProfileMBS.kColorSyncProfileURL as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

CSProfileMBS.kColorSyncSRGBProfile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the tag signature constants.

Can be used with the dictionary returned by the InstalledProfiles method.

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...