MonobjcMonobjc Documented Class Library
ColorUsingColorSpace Method (space)

Returns a new color object representing the color of the receiver in the specified color space.

Original signature is '- (NSColor *)colorUsingColorSpace:(NSColorSpace *)space'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSColor ColorUsingColorSpace(
	NSColorSpace space
Public Overridable Function ColorUsingColorSpace ( _
	space As NSColorSpace _
) As NSColor
virtual NSColor^ ColorUsingColorSpace(
	NSColorSpace^ space
space (NSColorSpace)
The color space of the new NSColor object.
Return Value
The new NSColor object. This method converts the receiver's color to an equivalent one in the new color space. Although the new color might have different component values, it looks the same as the original. Returns nil if conversion is not possible. If the receiver's color space is the same as that specified in space, this method returns the same NSColor object.
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)