Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorSpaceMBS class.

NSColorSpaceMBS.CGColorSpaceHandle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a Core Graphics color-space object that represents a color space equivalent to the receiver's.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox hex(n.CGColorSpaceHandle)

A reference to an Core Graphics color-space object (CGColorSpaceRef) or 0if the type of color space represented by the receiver cannot be represented by a CGColorSpace object.

Available in Mac OS X version 10.5.

Some examples using this method:

NSColorSpaceMBS.colorSyncProfileHandle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the ColorSync profile from which the receiver was created.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox hex(n.colorSyncProfileHandle)

The ColorSync profile on which the receiver is based. You need to cast this value to an object of opaque type CMProfileRef. Returns NULL if the receiver was created from a ICC-profile data instead. See ColorSync Manager Reference for further information on CMProfileRef.

Available in Mac OS X v10.4 and later.

NSColorSpaceMBS.Constructor(ICCProfileData as Memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes and returns an NSColorSpace object given an ICC profile.

ICCProfileData:
The ICC profile to use when initializing the NSColorSpace object. For information on ICC profiles, see the latest ICC specification at the International Color Consortium website.

The initialized NSColorSpace object or nil if initialization was not successful.

Available in Mac OS X v10.4 and later.

NSColorSpaceMBS.ICCProfileData as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the ICC profile data from which the receiver was created.

The ICC profile from which the receiver was created. This method attempts to compute the profile data from a CMProfileRef object and returns nil if it is unable to.

For information on ICC profiles, see the latest ICC specification at the International Color Consortium website.

Available in Mac OS X v10.4 and later.

Some examples using this method:

NSColorSpaceMBS.initWithCGColorSpace(CGColorSpaceHandle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes and returns an NSColorSpace object initialized from a Core Graphics color-space object.

The initialized NSColorSpace object or nil if initialization was not successful, which might happen if the color space represented by the CGColorSpace object is not supported by NSColorSpace.

Because NSColorSpace might retain or copy the CGColorSpace object depending on circumstances, you should not assume pointer equality of the provided object with that returned by CGColorSpace. And even if the pointer equality is preserved during runtime, it may not be after the NSColorSpace object is archived and unarchived.

Available in Mac OS X version 10.5 and later.

NSColorSpaceMBS.initWithColorSyncProfile(ColorSyncProfileHandle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes and returns an NSColorSpace object given a ColorSync profile.

The initialized NSColorSpace object or nil if initialization was not successful.

Available in Mac OS X v10.4 and later.

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


The biggest plugin in space...