Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CGColorSpaceMBS.BaseColorSpace as CGColorSpaceMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Returns the base color space of a pattern or indexed color space.
Notes:
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)

Feedback, Comments & Corrections

CGColorSpaceMBS.ColorTableCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Returns the number of entries in the color table of an indexed color space.
Notes:
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)

Feedback, Comments & Corrections

CGColorSpaceMBS.Description as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 15.4 Yes No No Yes, macOS only No
Function: The description text.
Example:
dim c as CGColorSpaceMBS = window1.CGColorSpaceMBS
MsgBox c.description
Notes: (Read only property)

Feedback, Comments & Corrections

CGColorSpaceMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: The handle to the color space.
Notes:
(a CGColorSpaceRef)
(Read and Write property)

Feedback, Comments & Corrections

CGColorSpaceMBS.Model as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Returns the color space model of the provided color space.
Notes:
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)

Feedback, Comments & Corrections

CGColorSpaceMBS.ModelText as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 15.4 Yes No No Yes, macOS only No
Function: The model as text.
Notes:
For viewing in debugger.
(Read only property)

Feedback, Comments & Corrections

CGColorSpaceMBS.Name as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 13.4 Yes No No Yes, macOS only No
Function: Queries the name of the colorspace.
Notes:
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)

Feedback, Comments & Corrections

CGColorSpaceMBS.NumberOfComponents as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the number of components.
Notes:
typical 1 for grayscale, 3 for RGB and 4 for CMYK.
(Read only property)

Feedback, Comments & Corrections

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




Links
MBS Xojo blog