MonobjcMonobjc Documented Class Library
ColorUsingColorSpaceNameDevice Method (colorSpace, deviceDescription)
NamespacesMonobjc.AppKitNSColorColorUsingColorSpaceNameDevice(NSString, NSDictionary)

Creates and returns an NSColor object whose color is the same as the receiver’s, except that the new NSColor is in the given color space and is specific to the given device.

Original signature is '- (NSColor *)colorUsingColorSpaceName:(NSString *)colorSpace device:(NSDictionary *)deviceDescription'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSColor ColorUsingColorSpaceNameDevice(
	NSString colorSpace,
	NSDictionary deviceDescription
Public Overridable Function ColorUsingColorSpaceNameDevice ( _
	colorSpace As NSString, _
	deviceDescription As NSDictionary _
) As NSColor
virtual NSColor^ ColorUsingColorSpaceNameDevice(
	NSString^ colorSpace, 
	NSDictionary^ deviceDescription
colorSpace (NSString)
The name of the color space containing the new NSColor object. If colorSpace is nil, the most appropriate color space is used.
deviceDescription (NSDictionary)
The device description. Device descriptions can be obtained from windows, screens, and printers with the deviceDescription method.
Return Value
The new NSColor object or nil if the specified conversion cannot be done.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)