Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
Platforms to show: All Mac Windows Linux Cross-Platform
ColorsyncAvailableMBS as boolean
Function:
Returns true if ColorSync is installed on this computer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
CountColorSyncCMMInfoMBS as Integer
Function:
Returns how many CMMs were found.
Notes:
Will return 0 if you don't call LoadColorsyncProfiles before.
Requires ColorSync 2.6 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Notes:
Will return 0 if you don't call LoadColorsyncProfiles before.
Requires ColorSync 2.6 or newer.
Some examples using this method:
CountColorSyncProfileInfoMBS as Integer
Function:
Returns how many Profiles were found in the folder "Colorsync profiles".
Notes: Will return 0 if you don't call LoadColorsyncProfiles before.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Notes: Will return 0 if you don't call LoadColorsyncProfiles before.
Some examples using this method:
CreateColorSyncBitmapMBS(p as picture,dontcopy as boolean) as ColorSyncBitmapMBS
Function:
Creates a bitmap matching the picture.
Notes:
If the parameter dontcopy is true the ColorSyncBitmapMBS refers to the original data from the picture and any change of them is seen in the picture. Inside the ColorSyncBitmapMBS object a reference to this picture is kept, so it is not destroyed by Realbasic if you don't need it anymore. The memoryblock of the data property is pointing to the original data of the picture.
If dontcopy is false then the pixels are copied into a new memoryblock which is later stored in the data property of the bitmap object.
This function was designed to test the MatchBitmap functions.
The PixelSize property of the bitmap is set to 32 as a good guess.
Does not support Cocoa. In Cocoa, please use CGBitmapContext and CGColorSpace classes for ColorSync.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Notes:
If the parameter dontcopy is true the ColorSyncBitmapMBS refers to the original data from the picture and any change of them is seen in the picture. Inside the ColorSyncBitmapMBS object a reference to this picture is kept, so it is not destroyed by Realbasic if you don't need it anymore. The memoryblock of the data property is pointing to the original data of the picture.
If dontcopy is false then the pixels are copied into a new memoryblock which is later stored in the data property of the bitmap object.
This function was designed to test the MatchBitmap functions.
The PixelSize property of the bitmap is set to 32 as a good guess.
Does not support Cocoa. In Cocoa, please use CGBitmapContext and CGColorSpace classes for ColorSync.
Some examples using this method:
GetColorSyncCMMInfoMBS(index as Integer) as ColorSyncCMMInfoMBS
Function:
Returns details about the CMM with the specified index.
Notes:
Index is 0 based.
Will return nil if you don't call LoadColorsyncProfiles before.
Requires ColorSync 2.6 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Notes:
Index is 0 based.
Will return nil if you don't call LoadColorsyncProfiles before.
Requires ColorSync 2.6 or newer.
Some examples using this method:
GetColorSyncProfileInfoMBS(index as Integer) as ColorSyncProfileInfoMBS
Function:
Returns details about the profiles in the folder "Colorsync profiles".
Notes:
Index is 0 based.
Will return nil if you don't call LoadColorsyncProfiles before.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Notes:
Index is 0 based.
Will return nil if you don't call LoadColorsyncProfiles before.
Some examples using this method:
GetDisplayColorSyncProfileMBS(index as UInt32) as ColorSyncProfileMBS
Function:
Returns the system colorsync profile.
Example:
Notes:
Index is zero based.
Returns nil on any error.
Deprecated by Apple in OS X 10.6. Please move to use NSScreenMBS and NSColorSpaceMBS.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | Colorsync | MBS MacClassic Plugin | 8.6 | Yes | No | No | No | No |
Example:
dim p as colorSyncProfileMBS
p=GetDisplayColorSyncProfileMBS(0)
msgBox p.Name
Index is zero based.
Returns nil on any error.
Deprecated by Apple in OS X 10.6. Please move to use NSScreenMBS and NSColorSpaceMBS.
GetSystemColorSyncProfileMBS as ColorSyncProfileMBS
Function:
Returns the system colorsync profile.
Example:
Notes:
Returns nil on any error.
Deprecated by Apple in OS X 10.6. Please move to use NSScreenMBS and NSColorSpaceMBS.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | Colorsync | MBS MacClassic Plugin | 8.4 | Yes | No | No | No | No |
Example:
dim p as colorSyncProfileMBS
p=getsystemColorSyncProfileMBS
msgBox p.Name
Returns nil on any error.
Deprecated by Apple in OS X 10.6. Please move to use NSScreenMBS and NSColorSpaceMBS.
Some examples using this method:
LaunchColorsyncControlPanelMBS
Function:
Launches the control panel for ColorSync.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Some examples using this method:
LoadColorsyncProfilesMBS
Function:
Call this to load the information about the colorsync profiles.
Notes:
You can call this function at any time to update.
If you have ColorSync 2.6 or newer the list of CMMs is also loaded.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Notes:
You can call this function at any time to update.
If you have ColorSync 2.6 or newer the list of CMMs is also loaded.
Some examples using this method:
OpenColorSyncProfileMBS(data as string) as ColorSyncProfileMBS
Function:
Opens a color sync profile which is in memory inside a string.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
global method | ColorSync | MBS MacClassic Plugin | Yes | No | No | No | No |
Example:
// create some profile
dim p as LCMS2ProfileMBS = LCMS2ProfileMBS.CreateSRGBProfile
// save to string in memory
dim s as string = p.SaveProfileToString
// and open with colorsync
dim c as ColorSyncProfileMBS = OpenColorSyncProfileMBS(s)
// show name
MsgBox c.Name
The items on this page are in the following plugins: MBS MacClassic Plugin.
Links
MBS Xojo Plugins