MonobjcMonobjc Documented Class Library
InitWithCGColorSpace Method (cgColorSpace)

Initializes and returns an NSColorSpace object initialized from a Core Graphics color-space object.

Original signature is '- (id)initWithCGColorSpace:(CGColorSpaceRef)cgColorSpace'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithCGColorSpace(
	IntPtr cgColorSpace
Public Overridable Function InitWithCGColorSpace ( _
	cgColorSpace As IntPtr _
) As Id
virtual Id^ InitWithCGColorSpace(
	IntPtr cgColorSpace
cgColorSpace (IntPtr)
A reference to a Core Graphics color-space object (CGColorSpaceRef).
Return Value
The initialized NSColorSpace object or nil if initialization was not successful, which might happen if the color space represented by the CGColorSpace object is not supported by NSColorSpace.
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)