Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGColorSpaceMBS class.

CGColorSpaceMBS.BaseColorSpace as CGColorSpaceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the base color space of a pattern or indexed color space.

The base color space if the space parameter is a pattern or indexed color space; otherwise, nil.

Available in Mac OS X v10.5 and later.
(Read only property)

CGColorSpaceMBS.ColorTableCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the number of entries in the color table of an indexed color space.

The number of entries in the color table of the space parameter if the color space is an indexed color space; otherwise, returns 0.

Available in Mac OS X v10.5 and later.
(Read only property)

CGColorSpaceMBS.Description as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The description text.
Example
dim c as CGColorSpaceMBS = window1.CGColorSpaceMBS
MsgBox c.description

(Read only property)

CGColorSpaceMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The handle to the color space.

(a CGColorSpaceRef)
(Read and Write property)

CGColorSpaceMBS.Model as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the color space model of the provided color space.

Available in Mac OS X v10.5 and later.

Use this constants:
CGColorSpaceMBS.kCGColorSpaceModelUnknown
CGColorSpaceMBS.kCGColorSpaceModelCMYK
CGColorSpaceMBS.kCGColorSpaceModelDeviceN
CGColorSpaceMBS.kCGColorSpaceModelIndexed
CGColorSpaceMBS.kCGColorSpaceModelLab
CGColorSpaceMBS.kCGColorSpaceModelMonochrome
CGColorSpaceMBS.kCGColorSpaceModelPattern
CGColorSpaceMBS.kCGColorSpaceModelRGB
(Read only property)

CGColorSpaceMBS.ModelText as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 15.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The model as text.

For viewing in debugger.
(Read only property)

CGColorSpaceMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 13.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries the name of the colorspace.

Not all CGColorspace objects have names. Some have only ICC Profile and you can get name via Name property in LCMS2ProfileMBS if you open the profile with LCMS.
(Read only property)

CGColorSpaceMBS.NumberOfComponents as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the number of components.

typical 1 for grayscale, 3 for RGB and 4 for CMYK.
(Read only property)

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


The biggest plugin in space...