Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

ColorsyncAvailableMBS as boolean
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Returns true if ColorSync is installed on this computer.
CountColorSyncCMMInfoMBS as Integer
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Returns how many CMMs were found.
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
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Returns how many Profiles were found in the folder "Colorsync profiles".
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
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.

Some examples using this method:

GetColorSyncCMMInfoMBS(index as Integer) as ColorSyncCMMInfoMBS
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.

Some examples using this method:

GetColorSyncProfileInfoMBS(index as Integer) as ColorSyncProfileInfoMBS
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.

Some examples using this method:

GetDisplayColorSyncProfileMBS(index as UInt32) as ColorSyncProfileMBS
global method, Colorsync, MBS Mac Plugin (Colorsync),
Plugin version: 8.6, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Returns the system colorsync profile.
Example:
dim p as colorSyncProfileMBS

p=GetDisplayColorSyncProfileMBS(0)

msgBox p.Name
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.
GetSystemColorSyncProfileMBS as ColorSyncProfileMBS
global method, Colorsync, MBS Mac Plugin (Colorsync),
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Returns the system colorsync profile.
Example:
dim p as colorSyncProfileMBS

p=getsystemColorSyncProfileMBS

msgBox p.Name
Notes:
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
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Launches the control panel for ColorSync.

Some examples using this method:

LoadColorsyncProfilesMBS
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.

Some examples using this method:

OpenColorSyncProfileMBS(data as string) as ColorSyncProfileMBS
global method, ColorSync, MBS Mac Plugin (Colorsync),
Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Opens a color sync profile which is in memory inside a string.
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 Mac Plugin.




Links
MBS Xojo Chart Plugins