Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorSpaceMBS class.

NSColorSpaceMBS.NSCalibratedBlackColorSpace = "NSCalibratedBlackColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Calibrated color space with black and alpha components (pure black is 1.0)
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.colorSpaceForColorSpaceName(NSColorSpaceMBS.NSCalibratedBlackColorSpace)
MsgBox n.localizedName

Deprecated in Mac OS X v10.6.

NSColorSpaceMBS.NSCalibratedRGBColorSpace = "NSCalibratedRGBColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Calibrated color space with red, green, blue, and alpha components.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.colorSpaceForColorSpaceName(NSColorSpaceMBS.NSCalibratedRGBColorSpace)
MsgBox n.localizedName

You can also create a color with HSB (hue, saturation, brightness) and alpha components and can extract these components.

NSColorSpaceMBS.NSCalibratedWhiteColorSpace = "NSCalibratedWhiteColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Calibrated color space with white and alpha components (pure white is 1.0)
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.colorSpaceForColorSpaceName(NSColorSpaceMBS.NSCalibratedWhiteColorSpace)
MsgBox n.localizedName

NSColorSpaceMBS.NSCMYKColorSpaceModel=2

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
The CYMK (cyan, yellow, magenta, black) color-space model.
Example
dim a(-1) as NSColorSpaceMBS
dim m as Integer = NSColorSpaceMBS.NSCMYKColorSpaceModel

a = NSColorSpaceMBS.availableColorSpacesWithModel(m)

dim names(-1) As string

for each c as NSColorSpaceMBS in a
names.Append c.localizedName
next

MsgBox Join(names,EndOfLine)

Can refer to both device-dependent and generic color space variants.
Available in Mac OS X v10.4 and later.

NSColorSpaceMBS.NSCustomColorSpace = "NSCustomColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Custom NSColorSpace object and floating-point components describing a color in that space.

A custom color-space object represents a color space that is not necessarily predefined by the Application Kit. See "Working With Color Spaces" for information on creating custom color-space objects.

NSColorSpaceMBS.NSDeviceBlackColorSpace = "NSDeviceBlackColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Device-dependent color space with black and alpha components (pure black is 1.0)
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.colorSpaceForColorSpaceName(NSColorSpaceMBS.NSDeviceBlackColorSpace)
MsgBox n.localizedName

NSColorSpaceMBS.NSDeviceCMYKColorSpace = "NSDeviceCMYKColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Device-dependent color space with cyan, magenta, yellow, black, and alpha components.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.colorSpaceForColorSpaceName(NSColorSpaceMBS.NSDeviceCMYKColorSpace)
MsgBox n.localizedName

NSColorSpaceMBS.NSDeviceNColorSpaceModel=4

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
DeviceN is a color-space model from Adobe Systems, Inc. used in PostScript and PDF color specification.
Example
dim a(-1) as NSColorSpaceMBS
dim m as Integer = NSColorSpaceMBS.NSDeviceNColorSpaceModel

a = NSColorSpaceMBS.availableColorSpacesWithModel(m)

dim names(-1) As string

for each c as NSColorSpaceMBS in a
names.Append c.localizedName
next

MsgBox Join(names,EndOfLine)

Available in Mac OS X v10.4 and later.

NSColorSpaceMBS.NSDeviceRGBColorSpace = "NSDeviceRGBColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Device-dependent color space with red, green, blue, and alpha components.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.colorSpaceForColorSpaceName(NSColorSpaceMBS.NSDeviceRGBColorSpace)
MsgBox n.localizedName

You can also create a color with HSB (hue, saturation, brightness) and alpha components and can extract these components.

NSColorSpaceMBS.NSDeviceWhiteColorSpace = "NSDeviceWhiteColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Device-dependent color space with white and alpha components (pure white is 1.0)
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.colorSpaceForColorSpaceName(NSColorSpaceMBS.NSDeviceWhiteColorSpace)
MsgBox n.localizedName

NSColorSpaceMBS.NSGrayColorSpaceModel=0

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
The grayscale color-space model. Can refer to both device-dependent and generic color space variants.
Example
dim a(-1) as NSColorSpaceMBS
dim m as Integer = NSColorSpaceMBS.NSGrayColorSpaceModel

a = NSColorSpaceMBS.availableColorSpacesWithModel(m)

dim names(-1) As string

for each c as NSColorSpaceMBS in a
names.Append c.localizedName
next

MsgBox Join(names,EndOfLine)

Available in Mac OS X v10.4 and later.

NSColorSpaceMBS.NSIndexedColorSpaceModel=5

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
An indexed color space, which identifies specified discrete colors in a color list by index number.
Example
dim a(-1) as NSColorSpaceMBS
dim m as Integer = NSColorSpaceMBS.NSIndexedColorSpaceModel

a = NSColorSpaceMBS.availableColorSpacesWithModel(m)

dim names(-1) As string

for each c as NSColorSpaceMBS in a
names.Append c.localizedName
next

MsgBox Join(names,EndOfLine)

An indexed color value (a color specification in indexed color space) consists of an index value that refers to a color in a color list.

Available in Mac OS X version 10.5 and later.

NSColorSpaceMBS.NSLABColorSpaceModel=3

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
The L*a*b* device-independent color-space model, which represents colors relative to a reference white point.
Example
dim a(-1) as NSColorSpaceMBS
dim m as Integer = NSColorSpaceMBS.NSLABColorSpaceModel

a = NSColorSpaceMBS.availableColorSpacesWithModel(m)

dim names(-1) As string

for each c as NSColorSpaceMBS in a
names.Append c.localizedName
next

MsgBox Join(names,EndOfLine)

Available in Mac OS X v10.4 and later.

NSColorSpaceMBS.NSNamedColorSpace = "NSNamedColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Catalog name and color name components.

The components of this color space are indexes into lists or catalogs of prepared colors. The catalogs of named colors come with lookup tables that are able to generate the correct color on a given device.

NSColorSpaceMBS.NSPatternColorSpace = "NSPatternColorSpace"

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 9.8
Pattern image (tiled)

Identifies a pattern color space, which is simply an image that is repeated over and over again in a tiled pattern.

NSColorSpaceMBS.NSPatternColorSpaceModel=6

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
Identifies a pattern color space, which is simply an image that is repeated over and over again in a tiled pattern.
Example
dim a(-1) as NSColorSpaceMBS
dim m as Integer = NSColorSpaceMBS.NSPatternColorSpaceModel

a = NSColorSpaceMBS.availableColorSpacesWithModel(m)

dim names(-1) As string

for each c as NSColorSpaceMBS in a
names.Append c.localizedName
next

MsgBox Join(names,EndOfLine)

Available in Mac OS X version 10.5 and later.

NSColorSpaceMBS.NSRGBColorSpaceModel=1

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
The RGB (red green blue) color-space model.
Example
dim a(-1) as NSColorSpaceMBS
dim m as Integer = NSColorSpaceMBS.NSRGBColorSpaceModel

a = NSColorSpaceMBS.availableColorSpacesWithModel(m)

dim names(-1) As string

for each c as NSColorSpaceMBS in a
names.Append c.localizedName
next

MsgBox Join(names,EndOfLine)

Can refer to both device-dependent and generic color space variants.
Available in Mac OS X v10.4 and later.

NSColorSpaceMBS.NSUnknownColorSpaceModel=-1

Type Topic Plugin Version
const Cocoa Drawing MBS MacBase Plugin 8.6
This model is not known to NSColorSpace.

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...