MonobjcMonobjc Documented Class Library
GetNumberOfComponents Method (color)
NamespacesMonobjc.ApplicationServicesCGColorGetNumberOfComponents(IntPtr)

Returns the number of color components (including alpha) associated with a Quartz color.

Original signature is 'size_t CGColorGetNumberOfComponents ( CGColorRef color );'

Available in Mac OS X version 10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSUInteger GetNumberOfComponents(
	IntPtr color
)
Public Shared Function GetNumberOfComponents ( _
	color As IntPtr _
) As NSUInteger
public:
static NSUInteger GetNumberOfComponents(
	IntPtr color
)
Parameters
color (IntPtr)
MISSING
Return Value
The number of color components (including alpha) associated with the specified color. This number is one more than the number of components of the color space for the color.
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)