Xojo Developer Conference
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
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
Function: Returns true if ColorSync is installed on this computer.

Feedback, Comments & Corrections

CountColorSyncCMMInfoMBS as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
Function: Returns how many CMMs were found.
Notes:
Will return 0 if you don't call LoadColorsyncProfiles before.
Requires ColorSync 2.6 or newer.

Feedback, Comments & Corrections

CountColorSyncProfileInfoMBS as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
Function: Returns how many Profiles were found in the folder "Colorsync profiles".
Notes: Will return 0 if you don't call LoadColorsyncProfiles before.

Feedback, Comments & Corrections

CreateColorSyncBitmapMBS(p as picture,dontcopy as boolean) as ColorSyncBitmapMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
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.

Feedback, Comments & Corrections

GetColorSyncCMMInfoMBS(index as Integer) as ColorSyncCMMInfoMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
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.

Feedback, Comments & Corrections

GetColorSyncProfileInfoMBS(index as Integer) as ColorSyncProfileInfoMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
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.

Feedback, Comments & Corrections

GetDisplayColorSyncProfileMBS(index as UInt32) as ColorSyncProfileMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Colorsync MBS MacClassic Plugin 8.6 Yes No No No No
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.

Feedback, Comments & Corrections

GetSystemColorSyncProfileMBS as ColorSyncProfileMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Colorsync MBS MacClassic Plugin 8.4 Yes No No No No
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:

Feedback, Comments & Corrections

LaunchColorsyncControlPanelMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
Function: Launches the control panel for ColorSync.

Feedback, Comments & Corrections

LoadColorsyncProfilesMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
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.

Feedback, Comments & Corrections

OpenColorSyncProfileMBS(data as string) as ColorSyncProfileMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method ColorSync MBS MacClassic Plugin Yes No No No No
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

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins